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) »
  • 4.1.2 Problem with no-latin character encoding (fixed)
Pages: [1]

Author Topic: 4.1.2 Problem with no-latin character encoding (fixed)  (Read 1958 times)

wictjob

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: civicrm-4.1.1-drupal
  • CMS version: Drupal 7
  • MySQL version: My SQL last
  • PHP version: PHP last
4.1.2 Problem with no-latin character encoding (fixed)
June 03, 2012, 09:49:55 am
Hi,

just installed new CiviCRM 4.1.2 on Drupal.
For some forms section there are no correct  encoding for languages with no-latin characters.
For example with Event Configuration
I've tried it with russian and french languages, the same problem.

Please see screenshot (Event Configuration).
As you can see in Element html code (inspection mode), the field value goes with wrong encoding.

I've tested it with all browsers (IE, FF, Chrome) but there are no changes.

Please note, this problem I've found only for few forms sections (Event Info, Configuration, Imoport) and not for a whole page but for certain section. 

In mo file the translation strings are correct.

But for my previous ver. 4.0.7 there was no such problems.

I will be apreciated for you help.
 
« Last Edit: June 05, 2012, 01:03:55 pm by wictjob »

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: 4.1.2 Problem with no-latin character encoding
June 04, 2012, 05:58:44 am
Hi,

Could you provide a screenshot of the same screen in French? It might provide hints on the type of caracter conversion being done.
I wonder, for example, if somewhere a conversion to an older encoding was done, such as CP-1251.

Otherwise, is it possible possible that the forms / help texts were customized? (either directly in the template, or using "word replacements").
The help text on that screen seems a bit different in length and format than in the standard 4.1 install.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

wictjob

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: civicrm-4.1.1-drupal
  • CMS version: Drupal 7
  • MySQL version: My SQL last
  • PHP version: PHP last
Re: 4.1.2 Problem with no-latin character encoding
June 05, 2012, 07:41:00 am
Hi,

there is a screenshot for french language.

There was no any customizing on this installation, except only in style.css in bartik theme, but only after I have encounter this problem with encoding. So this css customizing has for sure not to do with this problem.

PS: I have checked it on demo site, there is no problem, so I will look to my local installation.
« Last Edit: June 05, 2012, 07:56:54 am by wictjob »

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: 4.1.2 Problem with no-latin character encoding
June 05, 2012, 11:30:03 am
The part that has weird encoding problems are parts of screens which are loaded using javascript (parts of forms that are loaded after the main screen has been loaded).

Those parts do not have an encoding declaration (the "meta character encoding = utf-8" in the HTML head), so the browser relies on the "Content-Type: text/html; charset=utf-8" header from the web server. If I recall correctly, that header is set by Drupal, and otherwise, Apache has a default value (which is usually UTF-8).

I don't know if that gives any leads as to where the source of the issue might be. It's a bit hard to guess from here.
It might be the Apache webserver configuration, a Drupal module that is overriding the encoding, or a web browser bug.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

wictjob

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: civicrm-4.1.1-drupal
  • CMS version: Drupal 7
  • MySQL version: My SQL last
  • PHP version: PHP last
Re: 4.1.2 Problem with no-latin character encoding
June 05, 2012, 01:03:31 pm
Hi,

I have fixed this problem with the new installation (local with XAMPP), so I think it was a some fault installation with localisation steps from my side.

Thank you for your great support!

Victor

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • 4.1.2 Problem with no-latin character encoding (fixed)

This forum was archived on 2017-11-26.