Results 1 to 4 of 4

Thread: Sort out charset issues

  1. #1
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Sort out charset issues

    The forums are set to use ISO-8859-1 encoding (western european), as per:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    The main site is using UTF-8 (universal), as this is the default for XHTML 1.1 sites, but is incorrectly being served with the text/html MIME type. The specs suggest that text/* has a default of ISO-8859-1 unless overridden, but text/html is invalid for XHTML anyway, so browsers may behave in an odd manner on this.

    Mixing charsets never works - typically, it shows "advanced" characters up as an A with a hat on it, followed by one or more random characters. There's already mixing going on, as contributors writing content to the main site (which is being saved as UTF-8, because it seems most browsers are using that charset for the main site in the absence of correct explicit instructions) - but the automatic forum links are showing un-rewritten UTF8 in ISO-8859-1 mode.

    For a practical example, look at the quote on http://forums.hexus.net/lifestyle-ne...-gremlins.html as it comes, then try using your browser's View/Character Encoding setting to jump between ISO-8859-1 (what the page tells you it is) and UTF-8 (what it actually is in this case)

  2. #2
    I R Toff Pandi! TAKTAK's Avatar
    Join Date
    Mar 2008
    Location
    Vergon6
    Posts
    7,449
    Thanks
    549
    Thanked
    1,012 times in 747 posts
    • TAKTAK's system
      • Motherboard:
      • ASUS ROG STRIX B450-F GAMING
      • CPU:
      • Ryzen 7 3700X
      • Memory:
      • 16GB Corsair Vengeance LPX 3200MHz
      • Storage:
      • 500GB Samsung 970 EVO
      • Graphics card(s):
      • 5700 XT 50th Anniversary
      • PSU:
      • Be Quiet SFX-L 600W
      • Case:
      • Lian Li PC-O11 Mini
      • Operating System:
      • Windows 10
      • Monitor(s):
      • LG Ultrawide
      • Internet:
      • 200Mb FTTP

    Re: Sort out charset issues

    must admit, that does get quite annoying, and it's not particularly hard to fix...
    you need to pick 1, and stick with it
    Post Counts and Other Rewards, Rules, Folding@Home, Fans: Push vs Pull vs Push-Pull, Corsair PSU OEMs.

    Quote Originally Posted by razer121 View Post
    Would you like me to enter you? it would be my pleasure
    TAKTAK.co.uk

  3. #3
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,276
    Thanks
    292
    Thanked
    837 times in 473 posts

    Re: Sort out charset issues

    Well it's actually a little harder than that, when you have two different servers, two different databases, one that's been converted to UTF-8 and one that hasn't, and a web developer with no time on his hands.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  4. #4
    I R Toff Pandi! TAKTAK's Avatar
    Join Date
    Mar 2008
    Location
    Vergon6
    Posts
    7,449
    Thanks
    549
    Thanked
    1,012 times in 747 posts
    • TAKTAK's system
      • Motherboard:
      • ASUS ROG STRIX B450-F GAMING
      • CPU:
      • Ryzen 7 3700X
      • Memory:
      • 16GB Corsair Vengeance LPX 3200MHz
      • Storage:
      • 500GB Samsung 970 EVO
      • Graphics card(s):
      • 5700 XT 50th Anniversary
      • PSU:
      • Be Quiet SFX-L 600W
      • Case:
      • Lian Li PC-O11 Mini
      • Operating System:
      • Windows 10
      • Monitor(s):
      • LG Ultrawide
      • Internet:
      • 200Mb FTTP

    Re: Sort out charset issues

    ahh, point taken
    Post Counts and Other Rewards, Rules, Folding@Home, Fans: Push vs Pull vs Push-Pull, Corsair PSU OEMs.

    Quote Originally Posted by razer121 View Post
    Would you like me to enter you? it would be my pleasure
    TAKTAK.co.uk

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. pgr 3 issues
    By j.o.s.h.1408 in forum Gaming
    Replies: 12
    Last Post: 06-08-2006, 05:50 PM
  2. VISTA - security issues
    By peterb in forum Software
    Replies: 4
    Last Post: 05-08-2006, 10:33 AM
  3. Blu-ray launch delayed by DRM issues?
    By Bob Crabtree in forum HEXUS News
    Replies: 0
    Last Post: 28-12-2005, 11:36 AM
  4. What would you do? (women related issues ahead)
    By Lee H in forum General Discussion
    Replies: 34
    Last Post: 15-11-2005, 06:56 PM
  5. Commandos 3 - Sound Issues
    By Erotic Bootlace in forum Gaming
    Replies: 2
    Last Post: 26-12-2003, 06:31 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
  •