How to determine is string is UTF-8 encoded

Windows specific questions.
MrSwiss
Posts: 3610
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: How to determine is string is UTF-8 encoded

Postby MrSwiss » Jul 21, 2018 14:19

If doing things in German, please use OFFICIAL translation:
SetGlobals v2$="Das Leben ist schön" ; ö is Ascii 246
SetGlobals v2n$="Das Leben ist schon" ; no Umlaut
correct is:
"Das Leben ist schoen" -- the word gets otherwise, a different meaning!
That's the way its done in Travel-Documents, like Passports!
    ä = ae
    ö = oe
    ü = ue
jj2007
Posts: 1693
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: How to determine is string is UTF-8 encoded

Postby jj2007 » Jul 21, 2018 15:23

Danke vielmals, Herr Oberlehrer, dass Sie mir die deutsche Sprache erklären wollen! Aus dem Kontext hätte sich allerdings, mit etwas gutem Willen, durchaus ableiten lassen, dass das Beispiel nicht gedacht war, Schweizer Sprachstandards zu respektieren: Es ging um Utf8, nicht um korrekte Orthographie.
MrSwiss
Posts: 3610
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: How to determine is string is UTF-8 encoded

Postby MrSwiss » Jul 21, 2018 16:47

You are simply incapable, of taking any sort of critique, constructive or otherwise.
Anyway, its always a pleasure to help, Mr. omniscient.
jj2007
Posts: 1693
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: How to determine is string is UTF-8 encoded

Postby jj2007 » Jul 21, 2018 18:07

You shouldn't put a comma between "incapable" and "of taking", Mr Oberlehrer.
Pierre Bellisle
Posts: 42
Joined: Dec 11, 2016 17:22

Re: How to determine is string is UTF-8 encoded

Postby Pierre Bellisle » Jul 21, 2018 18:22

jj2007 >> Good idea but Paul had it a bit earlier
Yep, I missed it, maybe my subconscious did not? Useless redundancy. No copyright for me.

marcov>> it is only certain if there is a BOM
Even there I woudn't say "certain". I'd say mostly certain.
It's easy to imagine a text search engine that read some binary file that start with "" 0xEF,0xBB,0xB.
Of course, extention filename give no waranty.

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 0 guests