ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

language problem

September 04, 2007 4:37pm

Subscribe [1]
  • #16 / Sep 05, 2007 11:12am

    vest

    16 posts

    One more. After moving the site the PHP info has this info that was not before:
    Directive Local Value Master Value
    iconv.input_encoding ISO-8859-1 ISO-8859-1
    iconv.internal_encoding ISO-8859-1 ISO-8859-1


    Before moving this was not set and therefore EE is configuring this for incorrect charset.

    The status is that we have eliminated server problems and are left with EE problems that we need to solve.

  • #17 / Sep 05, 2007 11:59am

    vest

    16 posts

    I found this info in the manual in the comment part:

    P.P.S. According to the ExpressionEngine developers, a few other commands can be added as well, like SET CHARACTER SET utf-8 and SET COLLATION_CONNECTION=utf8_general_ci.

    Could this be the root of the problem?

    I hope someone will show up that knows how to handle languages.

  • #18 / Sep 05, 2007 12:58pm

    Lisa Wess

    20502 posts

    Hi, siggy - EE does not and can not set PHP directives, but if they are set to something other than UTF 8 I can see how that would cause a character encoding conflict.  Can you speak with your host about getting those changed to UTF-8?

  • #19 / Sep 05, 2007 1:09pm

    vest

    16 posts

    Hi

    I have talked to them. This server is configured the same way as the other installation we set up in Icelandic for westfjords.is and that is working perfectly with the same control config as this one.

    I am trying to tell you that this encoding happened after I moved the EE files. I have tried to set the header correctly via php, via meta and via htaccess, but the system does not confirm to the changes. I have phpinfo snapshots of before and after and I have test files that show you that Icelandic characters appear there with utf-8, but why not EE?

  • #20 / Sep 05, 2007 4:26pm

    vest

    16 posts

    Hi

    I have isolated the problem. The data in the database displays Icelandic chars correctly when accessed via another php script on the same server.

    All files generated by EE do not display Icelandic chars correctly. This is a matter that has to be solved and I need your help. Somehow EE generates wrong headers despite being configured to do otherwise. Please help me solve this puzzle.

  • #21 / Sep 05, 2007 4:35pm

    Lisa Wess

    20502 posts

    In the link that you sent me earlier, where it says “Icelandic characters not working” - they look like they are working to me. 

    I did note, however, that you have this at the very top of your page:

    

    Can you try re-uploading the EE files and making sure there is no corruption or white space in the PHP files?

  • #22 / Sep 05, 2007 4:37pm

    vest

    16 posts

    This is the same output that Firefox generates. IE displays all Icelandic letters scrambled and IE is the one we need to get right. The strange letters in Firefox is something the EE system creates. I have no idea how come they appear. The template I use is clean from them.

  • #23 / Sep 05, 2007 4:40pm

    Lisa Wess

    20502 posts

    Can you do me a favor and create a totally blank template, and put this and only this in it:

    This is a test

    and link to it, please?

    Are you running any extensions at all?

    And lastly, did you try the re-upload, as well as checking path.php and config.php for any stray characters or corruption?

  • #24 / Sep 05, 2007 4:44pm

    vest

    16 posts

    The PHP files look OK, not corrupted, at least as far my eyes can see.

  • #25 / Sep 05, 2007 4:54pm

    Lisa Wess

    20502 posts

    Did you try the re-upload, as well as the template test?  And what about extensions, are you running any?

    Also, I got your PM - how are you pulling that data out? I’m a bit confused as to what script that is, are you integrating this with a third party script of some sort?

  • #26 / Sep 05, 2007 5:00pm

    vest

    16 posts

    Lisa, you are a genius.

    After testing the path file in numerous editors I opened it up in DrJava as a text file and suddenly 3 strange characters appeared. I deleted them and everything is perfect.

    Thank you so much for bearing with me. I hope this experience will help someone along the way.

    Best wishes

    Siggi

  • #27 / Sep 05, 2007 5:03pm

    Lisa Wess

    20502 posts

    Aha!

    I thought that might be an issue simply because those 3 characters appeared before the template loaded, in the upper left - and were clearly not part of your design.  That definitely indicated something awry in the files.  Just explaining in case you see something like this again in any context, not just EE.

    Glad you got it all working!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases