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
  (#1) Old
Breadcrumbs Offline
New Member
 
Posts: 7
Join Date: Dec 2007
Question Character set issues after upgrading to 3.20.02 - 30-03-2008, 05:41 AM

I just upgraded our SupportSuite installation from 3.11.01 to the latest 3.20.02.

It appears as though the new version has changed the default character-set settings from latin1 encoding to utf-8. This caused some corrupted character display in knowledgebase articles, tickets, etc.

I changed the character set temporarily back to latin1 (in the config.php file, using the "$_DB['charset']" parameter), which reverted to the previous behavior. However I'd like to update the entire support desk to utf-8 if possible.

The concern is: the underlying MySQL database is using the latin1 encoding (it's the MySQL default, and the database was also created with the previous version of SupportSuite that defaulted to that encoding).

A.) Do I need to convert the MySQL database/tables to use utf-8 (and, if so, how do I accomplish this without causing the character corruption)?
B.) Do I need to do anything else other than changing the 'charset' parameter back to utf-8 to ensure a smooth transition? (i.e. Change PHP's charset? Change MySQL's charset? etc. If necessary, I'd like to make these changes only for SupportSuite to minimize the risk of breaking other apps.)

Thanks in advance.
   
Reply With Quote
  (#2) Old
GoneShootin Offline
Member
 
GoneShootin's Avatar
 
Posts: 153
Join Date: Jan 2008
02-04-2008, 01:08 PM

I was about to upgrade, but after reading this I think I will hold off.

/subscribes
   
Reply With Quote
  (#3) Old
sveide Offline
New Member
 
Posts: 3
Join Date: Jul 2004
Same problem - 02-04-2008, 01:28 PM

I can only acknowledge.

Mail coming in with charset="iso-8859-1" is not correctly transformed to utf-8 characters and not shown correctly in the web-interface.

/Jan Sveide
   
Reply With Quote
  (#4) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 850
Join Date: May 2005
Location: Boise, Idaho
02-04-2008, 04:29 PM

@sveide, please e-mail me and I'll send you a patch.


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#5) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 405
Join Date: Dec 2007
Location: Idaho
Talking A resolution - 02-04-2008, 06:21 PM

Quote:
A.) Do I need to convert the MySQL database/tables to use utf-8 (and, if so, how do I accomplish this without causing the character corruption)?
Yes. The instructions below account for both A and B.



Quote:
B.) Do I need to do anything else other than changing the 'charset' parameter back to utf-8 to ensure a smooth transition? (i.e. Change PHP's charset? Change MySQL's charset? etc. If necessary, I'd like to make these changes only for SupportSuite to minimize the risk of breaking other apps.)
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).

If there's anything else, please let us know. I believe this should resolve the issue you're facing, however.

- John Haugeland
Kayako Development Staff


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#6) Old
jcorreia Offline
New Member
 
Posts: 13
Join Date: Dec 2007
28-05-2008, 09:17 AM

Hi,
I have the same problem but only in email parser.
I did not converted the db to utf8, and I changed the "$_DB['charset']" to latin1, to keep what I had.
All is well except email parser. I did apply the ryan patch but the problem remains with emails.

Do I really have to convert the db to utf8 ? I prefer not to do it...thanks

Jcorreia
   
Reply With Quote
  (#7) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 850
Join Date: May 2005
Location: Boise, Idaho
28-05-2008, 04:52 PM

Quote:
Originally Posted by jcorreia View Post
Hi,
I have the same problem but only in email parser.
I did not converted the db to utf8, and I changed the "$_DB['charset']" to latin1, to keep what I had.
All is well except email parser. I did apply the ryan patch but the problem remains with emails.

Do I really have to convert the db to utf8 ? I prefer not to do it...thanks

Jcorreia
The email parser code I sent you will convert incoming email to whatever the "charset" value is in the active language pack. (Search for that entry in the language pack and also change it in the /locale/lang/lang.php file)

However, I am concerned with why you are trying to move away from UTF-8. There is no good reason that I can imagine to do so.

Regards,


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#8) Old
jcorreia Offline
New Member
 
Posts: 13
Join Date: Dec 2007
28-05-2008, 06:11 PM

Hi,
thanks for your answer, I will check it.
The reason Iám avoiding is because I had issues in past with charset, and I don+t want to fix a thing that ain´t broken...I´m afraid of ruinning anything without the option to test things before..
   
Reply With Quote
  (#9) Old
jcorreia Offline
New Member
 
Posts: 13
Join Date: Dec 2007
28-05-2008, 06:21 PM

I´ve tested and It works! Thanks...it was set utf-8 in en-us.php file, changed to iso-8859-1 and is well now.

Do you think I could came across with problems if I do not convert to utf-8 ? Do you advice me to do it ?
I have also in php.ini iso.8859-1 and I´m not sure about apache. I have another aplication running on server, and I´m afraid I might brake something.

Thanks for your support.
   
Reply With Quote
  (#10) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 850
Join Date: May 2005
Location: Boise, Idaho
29-05-2008, 12:01 AM

Quote:
Originally Posted by jcorreia View Post
I´ve tested and It works! Thanks...it was set utf-8 in en-us.php file, changed to iso-8859-1 and is well now.

Do you think I could came across with problems if I do not convert to utf-8 ? Do you advice me to do it ?
I have also in php.ini iso.8859-1 and I´m not sure about apache. I have another aplication running on server, and I´m afraid I might brake something.

Thanks for your support.
If you are using a Latin-based language you will be fine if you use ISO-8859-1. The reason we use UTF-8 natively is to also support multibyte languages like Russian and Japanese.

If you think you will never receive any e-mails that are in multibyte languages, then you will be OK with running the desk in ISO-8859-1. However, if you do receive for example a Russian e-mail, it will be converted to ISO-8859-1 and be completely unreadable.

Just a warning.


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#11) Old
jcorreia Offline
New Member
 
Posts: 13
Join Date: Dec 2007
29-05-2008, 08:16 AM

thanks...portuguese only
But I will have this in mind for future.

Keep the good work
   
Reply With Quote
  (#12) Old
msmartinwsx Offline
Member
 
Posts: 78
Join Date: Jul 2003
Exclamation 05-06-2008, 01:51 PM

@Ryan,

Can you advise on this also. We're using Kayako via WHMCS but some characters are getting messed up once they reach Kayako.

In Kayako (and received via watcher emails) the characters are 'corrupt' but when viewed in WHMCS, they are perfect.

I understand this to be because WHMCS uses iso-8859-1 but Kayako uses something else?

All tables in our Kayako DB are latin1_swedish_ci? Can you advise what we would need to do to fix this? We only deal with languages in normal English.

Matt
   
Reply With Quote
  (#13) Old
jnet Offline
Member
 
Posts: 511
Join Date: Mar 2008
05-06-2008, 03:58 PM

Sorry to say. You guys all are wasting your time. I have been going through this for months. you can make it this way but there seems to be a complicated way out there which I do not know
   
Reply With Quote
  (#14) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 850
Join Date: May 2005
Location: Boise, Idaho
06-06-2008, 04:46 PM

Quote:
Originally Posted by msmartinwsx View Post
@Ryan,

Can you advise on this also. We're using Kayako via WHMCS but some characters are getting messed up once they reach Kayako.

In Kayako (and received via watcher emails) the characters are 'corrupt' but when viewed in WHMCS, they are perfect.

I understand this to be because WHMCS uses iso-8859-1 but Kayako uses something else?

All tables in our Kayako DB are latin1_swedish_ci? Can you advise what we would need to do to fix this? We only deal with languages in normal English.

Matt
Please open a support ticket and request that it be assigned to me; in it, please describe step-by-step how to reproduce corrupt characters and provide screenshots if possible.

Thanks


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#15) Old
iczeh Offline
New Member
 
Posts: 8
Join Date: May 2008
23-06-2008, 11:56 AM

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?
   
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 04: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 04:00 AM
Character set? nine SupportSuite, eSupport and LiveResponse 4 13-07-2006 11:48 PM
Character Set of outgoing reply bubble SupportSuite, eSupport and LiveResponse 4 12-05-2006 11:15 PM



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


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