|
Post by dna on Mar 8, 2021 7:52:42 GMT 1
Hi I'm having troubles seeing swedish characters in filenames and programs. See attached pic. CHCP is 850 which is correct for sweden. Any idea what to do to fix it? Kind regards David
|
|
|
Post by Jos on Mar 8, 2021 14:08:26 GMT 1
I could say don’t use extended, codepage defined, ASCII characters in directory or filenames.
First problem is Windows FindFile API returns ANSI (that is not ASCII) characters in the SFN, so those have to be translated to ASCII based on the current codepage to be displayed correctly. Second if you would do DIR ÖVA, the ASCII character Ö will have to be translated to the ANSI Ö for Windows FindFile to find that file.
Both translations will be incorporated in the next vDos version… Jos
|
|
|
Post by dna on Mar 8, 2021 16:23:38 GMT 1
Ah nice Will this translation be for Ä and Å too? ÅÄÖ is the three extra characters that swedish has and some other nordic countries. And they are quite common so a bit hard to get around them when browsing old directory structures Thanks!
|
|
|
Post by Jos on Mar 8, 2021 17:50:33 GMT 1
It will be for all characters that are defined as extended ASCII by the codepage. So if you can type them in vDos and displayed correctly.
Jos
|
|
|
Post by dna on May 4, 2021 6:25:55 GMT 1
Hi! Just want to let you know, some success but still not working 100% And can not be accessed from within program (disk read/write error when trying to open directory). Thanks!
|
|
|
Post by Jos on May 4, 2021 11:01:23 GMT 1
Well, I only did the ASCII to ANSI translation for the Windows FindFile API. If I add that to for instance CD/CHDIR, I can select ÖVA. First hurdle: the prompt then becomes: Windows returned the directory name as ANSI. I would first have to translate that back to ASCII before saving it internally. Then of course translate all names given to DOS API file functions like OPEN and CREATE to ANSI before passing them on to the Windows API equivalents. I have to investigate if translating ASCII to ANSI and vice versa is actually consistent. And be cautious for side effects. Jos
|
|