judokafencer / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Problem with Danish special letters #187

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Loading a danish AGT game (in my case "Oprør på Nyx")

What is the expected output? What do you see instead?
The letters Øø is shown as ¥¢

What version of the product are you using? On what operating system?
Gargoyle build 2011.1
AGiliTy 1.1.1.1

Please provide any additional information below.
The Danish alphabet contains the special letters Æ/æ, Ø/ø and Å/å.
Æ and Å are showing correctly, but not Ø

Original issue reported on code.google.com by TorbenBo...@gmail.com on 11 May 2012 at 9:46

GoogleCodeExporter commented 8 years ago
Given the age of the Agility interpreter, I suspect this is a character 
encoding issue.

All the fonts included with Gargoyle have 0xD8 as Ø and 0xF8 as ø, so if 
these code points were used in the game file, the characters should display 
correctly.

Can you post or email a copy of the game file so I can test to see what 
characters are sent for display? Along with a transcript of commands needed to 
reach that point.

Original comment by bcressey@gmail.com on 13 Jun 2012 at 11:01

GoogleCodeExporter commented 8 years ago
Yes, this is probably a character encoding issue. Danish (and other Nordic) 
versions of DOS used the CP 865 character encoding, where ¥¢ were replaced by 
Øæ:

    http://en.wikipedia.org/wiki/Code_page_865

If a game used 0x9B and 0x9D, the characters would be display as Ø and ø on 
Danish computer systems (but ¥ and ¢ on English). I guess it will be tricky 
to correctly support this.

Original comment by k...@huftis.org on 9 Jul 2012 at 7:13