Unicode, UTF-8, ASCII, and ReadFile SC

Discuss and share scripts and script files...
admin
Site Admin
Posts: 49785
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 12 Jan 2015 12:08

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
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

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

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

Post by PeterH » 12 Jan 2015 12:18

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)
W7(x64) SP1 German
( +WXP SP3 )

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

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

Post by Enternal » 12 Jan 2015 12:24

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: 49785
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

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

Post by admin » 12 Jan 2015 12:31

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

BTW, just made "UTF-8 auto-detection" to factory default.
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

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

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

Post by PeterH » 12 Jan 2015 13:59

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:
W7(x64) SP1 German
( +WXP SP3 )

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

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

Post by DmFedorov » 12 Jan 2015 16:14

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