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) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Problems with accented letters
Pages: [1]

Author Topic: Problems with accented letters  (Read 467 times)

alainb

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.x
  • CMS version: Drupal
  • MySQL version: 5.x
  • PHP version: 5.x
Problems with accented letters
July 16, 2013, 04:07:30 am
When I create or update a contact whose name contains accents (like e.g. René), the name is truncated till the first letter with an accent. ("Ren" in this case).
Is this a (known) bug or am I doing something wrong?

I attached some test code so you can simulate the problem.




xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Problems with accented letters
July 16, 2013, 06:07:21 am
Hi,

Be sure the content you push in is properly encoded (utf8)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

alainb

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.x
  • CMS version: Drupal
  • MySQL version: 5.x
  • PHP version: 5.x
Re: Problems with accented letters
July 16, 2013, 06:23:53 am
My source file was indeed ansi encoded. I changed it to UTF-8 and now it works.
Problem solved.   :)

Thank you very much, Xavier!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Problems with accented letters

This forum was archived on 2017-11-26.