Link to home
Create AccountLog in
Avatar of Alexandre Takacs
Alexandre TakacsFlag for Switzerland

asked on

Server 2012 handling of non unicode files

I'm having an issue with "plain ASCII" file on a Server 2012R2 server.

I have two users opening the exact same file using notepad in two different sessions and they have a different representation:

User generated imageI have checked their "language" control panel and they have the exact same settings. This is the same machine (RDS server)... just two different users...

I muss say that I'm stomped...
Avatar of Muhammad Burhan
Muhammad Burhan
Flag of Pakistan image

if you configured shadow copies, try to retrieve any previous version of that file from there for troubleshooting.
Avatar of Alexandre Takacs

ASKER

Sorry the file was just generated and put on a local drive (on the RDS machine).

It is the very same file opened once by user A then by user B.

So the issue is about some code page or other similar thing pertaining to the representation / interpretation of ASCII > 127 by the OS. That's ooooold stuff I honestly don't remember... but definitely not a corrupted file !
Avatar of Gauthier
Gauthier

Well that's odd, however, the file is clearly NOT ascii, it is UTF-8
USER A is opening it correctly as UTF8 and USER B is opening it as ANSI hence the UTF-8 code for é is shown.
Can you check HKEY_CURRENT_USER\Software\Microsoft\Notepad
and the shell open command
Well that's odd, however, the file is clearly NOT ascii, it is UTF-8
USER A is opening it correctly as UTF8 and USER B is opening it as ANSI hence the UTF-8 code for é is shown.
Ok - interesting !

Can you check HKEY_CURRENT_USER\Software\Microsoft\Notepad
and the shell open command
Not sure what you want me to do... In any case I do "file - open" from notepad in both cases...
ASKER CERTIFIED SOLUTION
Avatar of Gauthier
Gauthier

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
well if I do file / open I get these options (from notepad)
User generated imagein all 4 cases the file doesn't show up correctly....
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Right you are - I have indeed managed to garble the file somehow - my bad.