Kayako logo
Installation & Upgrading Questions and issues regarding the installation and upgrade procedure of SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#16) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 855
Join Date: May 2005
Location: Boise, Idaho
23-06-2008, 07:43 PM

Quote:
Originally Posted by iczeh View Post
I've converted the tables to utf-8 by John's instructions, but the messages still go back to the customers with wrong characters. What else can I do?
Check the content-type header that your server is sending when it serves pages (both by viewing the source and looking at the meta tags and by viewing the actual HTTP headers); you can use this FF plugin to see the headers:

https://addons.mozilla.org/en-US/firefox/addon/3829

If the content type is being served wrong there are a couple places I would look:

1. Search all active language packs for "charset" and make sure all those entries are also set to UTF-8.
2. If you're using Apache 2, there is a new setting called AddDefaultCharset that causes the headers to include a default character set if none is provided (which is the case with Kayako products). Look at httpd.conf and make sure this setting is disabled.

If the content type is right and you're still getting garbled characters, it is possible that the database connection settings are causing problems.


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#17) Old
BoxAdmin Offline
New Member
 
Posts: 3
Join Date: Jun 2007
Question I need the patch - 30-07-2008, 11:58 PM

a week ago, I sent email to Ryan to send me the patch but unfortunately he did not reply.

sveide, could you please forward that character set conversion patch to me please.

I will pm you my email.


thanks.
   
Reply With Quote
  (#18) Old
BoxAdmin Offline
New Member
 
Posts: 3
Join Date: Jun 2007
31-07-2008, 01:26 AM

never mind, I managed to change the coding from using mbstring to iconv

and now it works perfectly.


PLEASE Kayako, I already written a request in the bug portal about this. please replace mbstring with iconv and no one will have any problem with encoding.
Kayako Bug Tracker - Viewing Issue #689 - Parser Encoding & Charactersets Conversion Problems
   
Reply With Quote
  (#19) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 681
Join Date: Dec 2007
Location: Idaho
Lightbulb Agreed - 31-07-2008, 06:04 PM

Quote:
Originally Posted by BoxAdmin View Post
please replace mbstring with iconv and no one will have any problem with encoding.
Yeah, it's not actually that simple. For example, iconv doesn't exist by default on Windows systems, and is difficult to get running with IIS, which represents a fairly large subset of our userbase. There are charactersets that iconv doesn't cover. iconv doesn't mesh with regular expressions the way mbstring does. Until recently, SupportSuite officially supported versions of PHP that predated iconv support. Et cetera.

There's also the question of what to do about PHP6, which has fully native unicode and characterset conversion support.

Believe me, sir, this conversion issue is actually one of my personal bugbears; I want to see this changed very badly. Like you, I think that mbstring is a problem, especially because it's basically stopping certain language groups cold - particularly cp1256/arabic. However, as an application vendor, we have to take a very broad view of people's differing servers.

We do, actually, have a plan about this. I'm not supposed to be talking about it yet, but we're not ignoring this issue. This is a red flag for us right now, and we're working on a solution that should work for a whole lot of people. We're just not going to start talking about it when we're only halfway done planning it ourselves.

Seriously, though. This Is Going To Get Fixed (tm), and iconv will be one of the options.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#20) Old
asiams Offline
New Member
 
Posts: 14
Join Date: Jan 2008
16-09-2008, 09:22 AM

What kind of settings should I make in order for Japanese to work both on showing them on the web, and to send email in ISO-2022 (JIS) through pipe setup?
   
Reply With Quote
  (#21) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 855
Join Date: May 2005
Location: Boise, Idaho
16-09-2008, 05:24 PM

Quote:
Originally Posted by asiams View Post
What kind of settings should I make in order for Japanese to work both on showing them on the web, and to send email in ISO-2022 (JIS) through pipe setup?
You should use UTF-8 for your database, tables, database connection and main charset. Then, set text_charset and html_charset to ISO-2022-JP in the language pack. That will cause outgoing e-mail to always be sent in ISO-2022. Incoming e-mail will be converted to UTF-8.

Important: The steps mentioned above will only work in 3.20.02 and higher.


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#22) Old
asiams Offline
New Member
 
Posts: 14
Join Date: Jan 2008
Thank you for the input. - 03-11-2008, 09:17 AM

Quote:
Originally Posted by Ryan Lederman View Post
You should use UTF-8 for your database, tables, database connection and main charset. Then, set text_charset and html_charset to ISO-2022-JP in the language pack. That will cause outgoing e-mail to always be sent in ISO-2022. Incoming e-mail will be converted to UTF-8.

Important: The steps mentioned above will only work in 3.20.02 and higher.
Now where can I get the Japanese language package for the 3.20.02 version?

Thanks.
   
Reply With Quote
  (#23) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,865
Join Date: Aug 2006
Location: Mumbai, India
03-11-2008, 09:18 AM

You might want to check the "Language Packs & Translation" sub-forum if someone has shared it. If not, then you can create one for yourself by editing the language pack XML file.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#24) Old
asiams Offline
New Member
 
Posts: 14
Join Date: Jan 2008
Upgarade Issues - 03-11-2008, 09:22 AM

Hello,

Currently I use DB with different character set. In this case, how can I convert the DB into UTF-8?

For DB connection to be UTF-8, should I set this at the config file? --> Self Answer: Yet it is located in config.php under config directory.

To set the main character set to be UTF-8, which file should I modify? --> This is also in the config.php file as default charset.

In order to set text_charset and html_charset to ISO-2022-JP, which files should I modify? --> This is in the language pack or CP->Language-> Manage Phrases -> search for charset, it will show the current set up.

At the admin, I can find the html_charset section to modify. But could not find text_charset section to modify. Where can I find this file? --> This was answered above.

These are my findings on this issue. Hope this will help.

Thanks.

Last edited by asiams; 08-11-2008 at 01:05 AM.
   
Reply With Quote
  (#25) Old
asiams Offline
New Member
 
Posts: 14
Join Date: Jan 2008
DB conversion issue - 03-11-2008, 10:43 AM

Quote:
You need to change the character set and the collation for any table being converted. You can do those both at the same time.

Please remember to back up your database before working in SQL; especially in the case of character sets, errors can cause loss. Backups are crucial.

For any table that you would like to convert to UTF-8 (these instructions written for a table named "foo"), issue the following command:

alter table foo convert to character set 'utf8' collate utf8_unicode_ci;

Of course, you'll want to go through the table afterwards, and make sure your data is intact. (It should be, but with character set issues and MySQL, one just checks.)

Please be aware that though this is safe for Kayako products, there is a bug in MySQL which causes the conversion of mediumtext and largetext columns to text columns during this conversion. As such, this command would not be safe for applications which stored very large texts (in excess of 2000 printed pages).
This seems to be the general instruction on how to convert DB to UTF-8.

Is there any patch that can just convert this process for us?

Or does the update process include this process to 3.30.02?

Any better solution to this?

Thanks.
   
Reply With Quote
  (#26) Old
asiams Offline
New Member
 
Posts: 14
Join Date: Jan 2008
deleted - 08-11-2008, 12:59 AM

deleted since it was no longer valid

Last edited by asiams; 08-11-2008 at 01:19 AM.
   
Reply With Quote
Reply

Tags
character, upgrading

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrading 3.20.02, news rss encoding nve Installation & Upgrading 3 21-03-2008 05:53 PM
Email Reports From Kayako in VBS colmtourque Developers & Code 1 31-12-2007 11:06 PM
The character set of the incoming email... NC Software SupportSuite, eSupport and LiveResponse 5 20-09-2006 05:00 AM
Character set? nine SupportSuite, eSupport and LiveResponse 4 14-07-2006 12:48 AM
Character Set of outgoing reply bubble SupportSuite, eSupport and LiveResponse 4 13-05-2006 12:15 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47