Results 1 to 3 of 3

Thread: Language charset problem?

  1. #1
    joelh is offline Registered User
    Join Date
    Feb 2008
    Location
    Denmark
    Posts
    12

    Question Language charset problem?

    I have a problem..

    If I, in ajax.php, put in this code:

    header ("Content-Type: text/html; charset=iso-8859-1");

    the danish letters æ, ø and å works in the menu, no prob.

    But if a user wants to create a username like Læske, he can't approve his registration because the letter Æ breaks the link in the approval mail.

    Example:

    http://gratiskunder.dk/register.php?u=læske&v=1681&pflag=cf

    the link stops at the letter Æ!

    I know it's possible to make a code instead of the Æ, but how and where do I need to put the code?

    Update:

    Bruceper tells me to put in charset utf-8 instead of the iso-8859-1, but when I do that my site gets completely trashed. It works fine with the iso-8859-1 code.

    So even if I need to use utf-8 I can't? It doesn't work with my site? Or am I completely lost here?

  2. #2
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I stated somewhere else that you need to use UTF-8.

    ISO8859-1 is for english characters only so it will never do what you want no matter how much you try. Convert your site to UTF-8 and you wont have further problems.

    The site doesn't get "trashed" if you do it correctly. The only thing changing the character set does is exactly that, changes the character set. You need to change everything including the database to utf-8.

    There is a thread on the forum here that details how to change your site from one charset to another.

  3. #3
    joelh is offline Registered User
    Join Date
    Feb 2008
    Location
    Denmark
    Posts
    12

    Default

    Yes.. I have read that thread and all other threads about it.

    I need to know exactly where and what to convert.

    I know I need to change the charset in ajax.php and in another file.

    But when I do that all the letters Æ, Ø & Å looks weird. As I understand it, it has something to with some strings I need to change. If so, where are theese strings or where do I need to put them or change them and how?

    I have searched the forum many times and read many threads, but can't find the exact way to do it. Only hints.
    Last edited by joelh; 02-11-2008 at 07:15 AM.

Similar Threads

  1. Country charset
    By fearless in forum v5.x
    Replies: 1
    Last Post: 10-14-2007, 12:20 AM
  2. admin charset page
    By SKh in forum v5.x
    Replies: 2
    Last Post: 05-19-2007, 03:02 PM
  3. mod-rewrite and charset windows-1250
    By vsevedko in forum v5.x
    Replies: 17
    Last Post: 04-14-2006, 02:03 PM
  4. German Language
    By Memo in forum Pre-Sales Questions
    Replies: 0
    Last Post: 07-11-2005, 04:08 PM
  5. Replies: 14
    Last Post: 04-18-2004, 03:43 PM

Posting Permissions

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