How to determine is string is UTF-8 encoded

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

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

Post by MrSwiss »

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: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

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

Post by jj2007 »

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: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

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

Post by MrSwiss »

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

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

Post by jj2007 »

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

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

Post by Pierre Bellisle »

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.
Post Reply