Problem with charset and translation

Discussion in 'Customization & add-ons' started by biznetpro, Oct 11, 2009.

  1. biznetpro

    biznetpro New Member

    Joined:
    Oct 10, 2009
    Messages:
    21
    I will be using aMember in Polish language and I encountered a following problem: when I create a product I can type in Polish characters (utf-8), they are stored well and then displayed on signup page. However, when I translate a language film en-custom the Polish letters will not be displayed correctly. Can anybody help me to understand this?

    Also I can't find "for each month" sentence in language film. Where can I find it to translate it into Polish?

    Thanks in advance.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @biznetpro: make sure you are saving the language file in utf-8 format. What are you using to edit the file?
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Also please make sure that you have content-type meta tag in your header.html :
    Code:
    <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
    
  4. biznetpro

    biznetpro New Member

    Joined:
    Oct 10, 2009
    Messages:
    21
    Yes, everything is correct and I am using Coda for Mac OS X - I manage several websites and text encoding is good on my site. I have translated JAM and several other scripts so this is not my first one.

    Kindly have a look:
    http://www.biznetpro.pl/amember/signup.php
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    If you can post a link to the language file (zip it up) that would probably be more telling as to what the issue is.
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Did you change encoding in language def file?
    I see this in the headers:
    Content-Type: text/html; charset=ISO-8859-1
  7. biznetpro

    biznetpro New Member

    Joined:
    Oct 10, 2009
    Messages:
    21
    What is language def file? No, I did not change anything. I have only edited en-custom file.
  8. biznetpro

    biznetpro New Member

    Joined:
    Oct 10, 2009
    Messages:
    21
    Sorry for bothering you. I should have read the manual more diligently. I have already corrected it. However thank you for the kind answers.
  9. tommyxv

    tommyxv New Member

    Joined:
    Feb 13, 2010
    Messages:
    28
    Is this correct?

    Code:
    $GLOBALS['_LANG']['en'] = array(
    
        'title' => 'English',
    
        'self_title' => 'English',
    
        'encoding' => 'UTF-8',
    
      [B]  'locale' => 'en_US.UTF-8',[/B]
    
        'email_encoding' => 'UTF-8',
    
    );
  10. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    yes seems to be correct.

Share This Page