Advertisement:

Author Topic: Mystery character in PM  (Read 2767 times)

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,250
  • 'Tis the gift to be simple (duh)
Mystery character in PM
« on: October 30, 2017, 01:28:19 PM »
A german forum pm'd login credentials for host account.  Password includes english alpha/numeric characters, and a '?'.  If I type the password manually, or copy it from Notepad, it fails.  If I copy it from pm, it works.  Apparently the '?' is actually a diacritic letter, which is not displayed correctly in pm because this forum is not running german utf-8, but it copies correctly from pm.  How does that work?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,303
    • StoryBB/StoryBB on GitHub
Re: Mystery character in PM
« Reply #1 on: October 30, 2017, 02:10:16 PM »
The ? indicates one of two things: either a malformed character or a character glyph in a font you don't have installed.

As for 'German UTF-8', this forum is installed with UTF-8 just fine and has been for years. It doesn't require you viewing it in the 'correct' language pack for it to be a thing.

As for why it fails if you type it directly, you're probably typing the wrong character (a literal ? is not the right one) and copying it to Notepad will shift it to a different encoding, probably Win-1252 (unless you've told Notepad to not treat it as such). If in doubt, save the PM page as is and examine the individual bytes with a hex editor to see what it is.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,250
  • 'Tis the gift to be simple (duh)
Re: Mystery character in PM
« Reply #2 on: October 30, 2017, 10:56:53 PM »
If the browser is not able to display the character correctly, then I shouldn't be able to copy it from the pm, because the browser has substituted a ? for that character.  I can see the umlauts in Götterdämmerung, copy it to Notepad, and it displays them correctly. ???

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,303
    • StoryBB/StoryBB on GitHub
Re: Mystery character in PM
« Reply #3 on: October 31, 2017, 04:09:05 AM »
Just because the browser can't display it for some reason, doesn't mean it isn't aware of what the bytes are.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.