Unicode, UTF-8, ASCII, and ReadFile SC

Discuss and share scripts and script files...
admin
Site Admin
Posts: 60566
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Unicode, UTF-8, ASCII, and ReadFile SC

Post by admin »

Enternal wrote:But would that explain why the fresh install behave differently than the non-fresh install? If I did the same exact thing that I laid out, the fresh install never changed back to the correct characters. It remained gibberish the entire time.
Because this is unticked by default:
Configuration | Preview | Text preview: | UTF-8 auto-detection

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Unicode, UTF-8, ASCII, and ReadFile SC

Post by PeterH »

Ah - didn't know UTF-x can be represented by a codepage number :shock: Thanks to help understanding. :tup:

Maybe, for people like me, you could give this hint in documentation?
(I.e.: UTF-8 = 65001)
Win11 Pro 223H2 Gerrman

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Unicode, UTF-8, ASCII, and ReadFile SC

Post by Enternal »

admin wrote:
Enternal wrote:But would that explain why the fresh install behave differently than the non-fresh install? If I did the same exact thing that I laid out, the fresh install never changed back to the correct characters. It remained gibberish the entire time.
Because this is unticked by default:
Configuration | Preview | Text preview: | UTF-8 auto-detection
:whistle:
PeterH wrote:Ah - didn't know UTF-x can be represented by a codepage number :shock: Thanks to help understanding. :tup:

Maybe, for people like me, you could give this hint in documentation?
(I.e.: UTF-8 = 65001)
Or just link them this page:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Code: Select all

EDIT: Oh finally, what about the Match Unicode option? What exactly is it supposed to do? Since it's not doing what I or DmFedorov expected it to do.
Think Don is running away from this question :)

admin
Site Admin
Posts: 60566
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Unicode, UTF-8, ASCII, and ReadFile SC

Post by admin »

So it is, I've to move on for now.

BTW, just made "UTF-8 auto-detection" to factory default.

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Unicode, UTF-8, ASCII, and ReadFile SC

Post by PeterH »

Enternal wrote:
PeterH wrote:Ah - didn't know UTF-x can be represented by a codepage number :shock: Thanks to help understanding. :tup:

Maybe, for people like me, you could give this hint in documentation?
(I.e.: UTF-8 = 65001)
Or just link them this page:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
As I wouldn't have expected UTF here I wouldn't have looked there :roll:

In between the time I had a little look at wikipedia for UTF-8 and for codepages. I think in the moment I understand the basics now.
But don't know how long this will last :oops: - my problem when I rarely need it :cry:
Win11 Pro 223H2 Gerrman

DmFedorov
Posts: 680
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Unicode, UTF-8, ASCII, and ReadFile SC

Post by DmFedorov »

Enternal wrote: PeterH wrote:
Ah - didn't know UTF-x can be represented by a codepage number Thanks to help understanding.

Maybe, for people like me, you could give this hint in documentation?
(I.e.: UTF-8 = 65001)
Or just link them this page:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Thanks. Your link was very useful. I found a solution how to make function ReadFile() read content of UNICODE file.

Post Reply