CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • After UTF8 import Chinese characters do not display as they should
Pages: [1]

Author Topic: After UTF8 import Chinese characters do not display as they should  (Read 3824 times)

sypl

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 1
After UTF8 import Chinese characters do not display as they should
May 19, 2009, 04:37:07 am
I've imported a UTF8 CSV file successfully, but all the Chinese characters show up as question marks after import. I've tried this on the demo site and get the same error.

Has something changed in the latest update, because I've imported Chinese characters before with no problems.

Using Drupal 6.10 and CiviCRM 2.2.2. Attached is the test file that I used on the demo. Note how two of the columns return question marks.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: After UTF8 import Chinese characters do not display as they should
May 20, 2009, 01:53:58 am
I can reproduce this on my local CiviCRM 2.2 sandbox as well. :(

I filed CRM-4511 to track this; I hope we’ll fix it for CiviCRM 2.2.4.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: After UTF8 import Chinese characters do not display as they should
May 20, 2009, 06:10:58 am
I fixed this issue in r21309 on the v2.2 branch, so it will be a part of CiviCRM 2.2.4. The fix can be seen here: http://fisheye.civicrm.org/changelog/CiviCRM?cs=21309 – if you want to have a fixed system before we release 2.2.4, you can overwrite the CRM/Import/DataSource/CSV.php and CRM/Import/ImportJob.php files with the ones from our repository:
http://svn.civicrm.org/civicrm/branches/v2.2/CRM/Import/DataSource/CSV.php
http://svn.civicrm.org/civicrm/branches/v2.2/CRM/Import/ImportJob.php
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

sypl

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 1
Re: After UTF8 import Chinese characters do not display as they should
May 20, 2009, 04:57:35 pm
Brilliant! Thanks for the fix!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • After UTF8 import Chinese characters do not display as they should

This forum was archived on 2017-11-26.