Site_Feedback

Topic   quote, apostrophe, special characters are ?s

MrBean
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Gold Global Trader (7) Has Written 1 Review
* 17-Jan-2023(#1)
Anyone else seeing this? Mobile and desktop, many (not all), single quotes are being converted to question marks.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
17-Jan-2023(#2)
hm... Yes, someone else mentioned this yesterday. I had just updated the database software. I didn't think it could cause this, but maybe it has.

I believe it's related to character encoding. There's a standard set of characters (letters, numbers, punctuation) that is called ASCII. It's old and works well, but lacks variety and many less common characters. The other person who reported this had used and ellipses (...) characters (rather than 3 periods) and it got messed up (saw a ? too). I think the ? shows when there's some character encoding issue.

Quotes have the same potential problem. ASCII has single and double quotes, but they are straight and lack the curved variations (true punctuation has the quotes curving differently on either side of the words they contain). So, some modern operating systems (mobile devices) use the non-ASCII characters now. Those are the ones that can end up being ?'s.

I think the database may be involved as it may not have the right character encoding to store them ... or something like that.

I'll try to look into it... maybe take some time.

A workaround is to try to mostly use ASCII characters as much as possible.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
17-Jan-2023(#3)
@dunno001 I think this is what you had mentioned yesterday with the ellipses issue you are having.

I think you may be right, that it's the database upgrade that caused this too.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
17-Jan-2023(#4)
?Test?. ? ?quote?
Slickriven
GameTZ Subscriber Double Gold Good Trader Has Written 1 Review
17-Jan-2023(#5)
Am seeing this in other people's posts, expecting it'll change the 2 single quotes here as well. Interesting issue to deal with Bill. Surprised you're not using Unicode vs. ASCII.

Slickriven
GameTZ Subscriber Double Gold Good Trader Has Written 1 Review
17-Jan-2023(#6)
Oh, maybe it's fixed...

MrBean
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Gold Global Trader (7) Has Written 1 Review
17-Jan-2023(#7)
bill wrote:
> ?Test?. ? ?quote?

image
Noid
Double Gold Good Trader
17-Jan-2023(#8)
Unfortunately, it's still messed up for me. frown
image
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
* 17-Jan-2023(#9)
bill wrote:
> ?Test?. ? ?quote?

I used my phone to do those quotes... and, as expected it used the special curved quote characters.

Alternately, using a laptop.

"test" ... 'quote'

The old-style straight quotes (ASCII) and I assume these still look fine.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
17-Jan-2023(#10)
I'm looking at the database stuff and not finding what might have changed.

Also, that it's even more complicated as they call the character encoding I use "latin1". Which is not just ASCII (has a lot of other special accented characters and such). So, I think it would still be fine.

There's also a layer in my own code that trying to "fix" some of the common stuff... maybe that somehow broke. But, it's hard to tell what upgrading the DB software changed.

And, there's some danger here if I try converting to another character set encoding... I could trash all the data. Hopefully, that's unlikely.

I've haven't used UTF-8 (now synonymous utf8mb3 in the database world apparently). The "latin1" encoding I use has some advantages as it uses just one byte per character. It's often faster because of that. I guess if I just switch to UTF-8, the database could become quite slow in seemingly random ways. I think since we're 99% English, latin1 is more than enough. So, sticking with that seems like a good idea still. I'm still reading about it, though.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
17-Jan-2023(#11)
Well, I haven't tracked down what changed or why, but my best guess is the database software is now (since updating) more strict about what it allows to be stored. So, it used to be that people would send special characters that were not in the default "latin1" character set and it would save them in the database regardless. Now, the characters that aren't in "latin1" are changed into ?.

What I can do is convert such characters to the blander variants that are in "latin1", so it will work. But, this will mean finding all the places where stuff people type gets saved in the database (e.g. forum posts, pms, offers trades, bio, ...) There are a lot of places, so that may take a while and I could still miss some. Still, it could allow for other ways to fix inputs, which could be useful in other cases as well.

I should keep looking for the cause, though. There may be some way to just do this automatically.
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
* 17-Jan-2023(#12)
I always had issues with this crap on Android. Think I made a topic about it back in the day too, maybe. At some point you tightened the screws somewhere and it took care of it. Actually I think my issue may have been with apostrophes turning into & or something thinking on it again
Alaisiagae
GameTZ Subscriber Double Gold Good Trader
* 17-Jan-2023(#13)
Yes, I noticed the other day than an o with an umlaut, which showed normally before the database update, was changed initially to some gobbly gook (some random characters). I tried re-entering it, and when I saved, it changed to a question mark.

MrBean
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Gold Global Trader (7) Has Written 1 Review
17-Jan-2023(#14)
bill wrote:
> bill wrote:
>> ?Test?. ? ?quote?
>
> I used my phone to do those quotes... and, as expected it used the special curved
> quote characters.
>
> Alternately, using a laptop.
>
> "test" ... 'quote'
>
> The old-style straight quotes (ASCII) and I assume these still look fine.

This looks good here
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
* 17-Jan-2023(#15)
image

Uh oh. This is new. Edge browser on iPhone
WithinTemptation
250 Trade Quintuple Gold Good Trader
17-Jan-2023(#16)
Pok?mon
MrBean
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Gold Global Trader (7) Has Written 1 Review
17-Jan-2023(#17)
WithinTemptation wrote:
> Pok?mon

I read this as a Jamaican asking me if I wanted some Pok, Mon!
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#18)
I feel like this is GameTZ showing its age. It still uses this old character set that used to be what everyone used (20 years ago). Now, not so much. But, I'm not sure I can just magically move to the new normal without the site being shredded in the process because it was all built on that old character set. Losing sleep over this... RIP GameTZ.
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#19)
Gg
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#20)
Pok?mon👌
???
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#21)
😍👀👧👩‍🦲👳‍♀️👱‍♂️🛹🚜🚐
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#22)
emojis work?!

*kills self*
Scott
GameTZ Subscriber Global Trader - willing to trade internationally Has Written 2 Reviews
18-Jan-2023(#23)
laughing out loud
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#24)
"Good morning, Dave," said HAL.
'Good morning, Dave,' said HAL.

"Good morning, Dave," said HAL.
'Good morning, Dave,' said HAL.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#25)
Pokémon
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#26)
I’m “quote” — ‘quote’ …
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#27)
Maybe, it's fixed now.

Let me know if you still have problems.

Some notes to my future self (and the tech-curious)...


I'm still not sure what caused it to break exactly, but there are some variables the DB uses to set character set. I think they had been latin1 by default, but for the web code I have, (after the update perhaps - can't be sure) it was utf8mb4 and that caused issues (the ? we were seeing) because I'm using latin1 in my db and it turns utf chars into ?s. So, I now set the character set before using the database from my web code to latin1 and that seems to make it work like it used to.

There is still this nagging potential issue that GameTZ is using the latin1 character set despite HTML5 standards and the database people clearly pushing UTF-8. I did try to switch to UTF-8 on my test server (converted a couple tables, set the html page charset=UTF-8) and it mostly works, but I saw an issue. When I searched the forum for Pokémon, the results pages had Pokémon [garbage characters in the search text box where the accented e should have been). Switching to UTF-8 is a fair bit of work too, so it seems best to hold off on that indefinitely give the risk/reward being dubious at this point.

bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
* 18-Jan-2023(#28)
I should also note that all the bad ?s in entered text for the last couple days stored the ?s, so it's still like that. I don't have any great way to fix all those. So, I was just going to not fix those. From now on, it should store them correctly, though.
Scott
GameTZ Subscriber Global Trader - willing to trade internationally Has Written 2 Reviews
18-Jan-2023(#29)
Thanks Bill, you're the best!
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#30)
ThatÂ’s nice, mang
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#31)
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#32)
I think that was my original issue from back in the day
Scott
GameTZ Subscriber Global Trader - willing to trade internationally Has Written 2 Reviews
18-Jan-2023(#33)
What, saying "mang"?
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#34)
Hm, yeah, apostrophe is still not right. wry smile
Scott
GameTZ Subscriber Global Trader - willing to trade internationally Has Written 2 Reviews
18-Jan-2023(#35)
Everyone just stop using apostrophes, problem solved!
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#36)
@DarkFact try it again now
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#37)
That’s fine
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#38)
Eyyy. Mission accomplished.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
18-Jan-2023(#39)
Good.

So, it seems fairly stable for now, but I feel more and more like I should move the whole site to UTF-8.
I'll spend more time playing with it on my test server. If it seems good, I may push it out to the live site. We'll see.
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
18-Jan-2023(#40)
Sexy!
John
GameTZ Gold Subscriber GameTZ Full Moderator 450 Trade Quintuple Gold Good Trader Gold Global Trader (13)
18-Jan-2023(#41)
Hmmm...

GͯͯaͯͯmͯͯeͯͯTͯͯZͯͯ
John
GameTZ Gold Subscriber GameTZ Full Moderator 450 Trade Quintuple Gold Good Trader Gold Global Trader (13)
18-Jan-2023(#42)
Noice.
John
GameTZ Gold Subscriber GameTZ Full Moderator 450 Trade Quintuple Gold Good Trader Gold Global Trader (13)
* 18-Jan-2023(#43)

I̷̠̞̘͕̞̓̐̽̔̄ͦ͂͡ ̸̨̲̜̃̇͂̑͜å͚͕͓̮̘ͥ̔͒ͪͥ͠m̮͍͕̭̍̃ͥ͆̾̋͆ͤ ͙̪̖͓̫͎͔̘̬̾ͭ̄ͥ́̂̔́Ğ̞̠̠̲̯̪̳͈̄̇͐̒̆̍́o̵̟ͮ̍̐ͭẓ̈̚ě͓̬̬̯̘̓ͪ̇̊ͪͮř̸̛̭̬͈͉̩̗̺͈̱ͮ͟,̲͇͚̌͐̕ ͐̇̾̔̔͒̾͠͏̙̫̪͜D͎ͦ̈̂͒̈̚͢ę͇̥͐͋̌ͣ́͜s̗̣̫̟̞̰͂̋̈́̄ͅţ̡̣̯͊ͭ͆̔̚ͅr̷̜̤̎͂̑ͯ̓ͮ̆̀ő̿͒͒́̾ͭ̀̚҉͇̮̮̺̞͎͖ͅy͓̺̰̖̠̋̈͗̃̈́̀̓̋̀̚ẽ̹̋̑͜r̗͍̗̼͔͙̘ͨ͛̀͘͝ ̨̝̗̼͔͋͞ͅo̸̷̮̞̣̜̺̮̪̊̉͠f̨ͣͥ̔͋͗͛̉̚҉̷̦̳̪̳ ̝ͤ̀͝Ŵ̛̞̺̈́ͦ͜ǒͦ̑̌̉̾̿̚͏̜̹͎͚̺̳r̴̟̳̂̓͊̓͂̀̎͠l̴̵͎̞̈́̿͗ͦd̡̜̬͔̹ͭ͌̽̆̔͒ͣͧs̀͂̇͂ͮ̄̊͘҉̥̤̱͎.̠ͤ̒̐̓ͥ

Kommie
250 Trade Quintuple Gold Good Trader This user is on the site NOW (4 minutes ago)
18-Jan-2023(#44)
DarkFact wrote:
> 750 1038{imgt}
>
> Uh oh. This is new. Edge browser on iPhone

Why are you using Edge? All the cool geezers use Internet Explorer.
MrBean
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Gold Global Trader (7) Has Written 1 Review
* 18-Jan-2023(#45)
Kommie wrote:
> DarkFact wrote:
>> 750 1038{imgt}
>>
>> Uh oh. This is new. Edge browser on iPhone
>
> Why are you using Edge? All the cool geezers use Internet Explorer.

Edge is actually quite awesome. Also IE will be officially removed next month, finally!
dunno001
250 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally
18-Jan-2023(#46)
Well… I guess I can check something?
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Has Written 28 Reviews
19-Jan-2023(#47)
Yeah, the ellipses thing. If you try that and make sure it works now.
DarkFact
400 Trade Quintuple Gold Good Trader Has Written 4 Reviews
19-Jan-2023(#48)
🤓

Topic   quote, apostrophe, special characters are ?s