Results 1 to 3 of 3

Thread: Having problems with lenguage encoding...

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default Having problems with lenguage encoding...

    Hi,
    I use utf8-lithuania-ci encoding in my mySQL, because im lithuanian.
    But then i met some difficulties, when my lithianian symbols become a code which is shown in my webpage non-converted to normal letters. What encoding I must use, because there is 3 types of lithuanian letter encode.
    Thanks

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Using a specific encoding in mysql for Lithuanian is a bad idea, I think.
    Try using an open encoding, like UTF8 (general).
    There is no reason you can't use Lithuanian characters then, but it won't conflict with other types of characters either.

    Also, if there is a problem, then something does not match. There are 4 possible problems (if not more):
    1. The browser must enable the language (some systems don't have Japanese fonts, for example.)
    2. The html must use the right encoding. You can use a meta tag to set this, and you should use Unicode if you have any non-English (and especially non-European) characters, because that is what Unicode is designed for.
    3. The html TEXT file must be in the right encoding. In notepad or whatever program you use, be sure you have the encoding of the actual .htm file set to unicode (so it matches the encoding of the html in the document). Dreamweaver has caused problems with this for me so, and it will change the encoding and it looks like all the code is right but something still does not work. This is hard to notice, so it is good to know about and check to see if it is a problem.
    4. The mysql database must match this as well. Use the same encoding.

    Make sure all of the encodings match, and then it should work.


    HTML entities will work very well, but it is very annoying to use them. If you only need a little content with strange characters, it is a good idea. But if you need your whole website in a language (Lithuanian), html entities will take a lot of time.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •