| |
TWW
Registered: Jul 2009 Posts: 555 |
NP++ Character de/encoding
|
|
| |
TWW
Registered: Jul 2009 Posts: 555 |
No idea what's going on. Press "quote to read post #1 |
| |
iAN CooG
Registered: May 2002 Posts: 3235 |
The chars you're trying to use have been probably encoded in utf8 as E2 94 94 for example.
Try using \xe2\0x94\0x94 notation
For sure your code made the CSDb forum go crazy =) |
| |
WVL
Registered: Mar 2002 Posts: 924 |
Where does notepad++ come into play? Is it the encoding of that character in the .asm file? Kickass ofcourse doesn't care what program edited the file. |
| |
TWW
Registered: Jul 2009 Posts: 555 |
Yeah it's weird as hell. It's the exact same source code only assembled on different windows computers. Tried it on 3 different computers, and 1 acts as expected and 2 produces "@" characters (which is how the fix is implemented).
Need to dig a little more. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11510 |
NP++ changed the way it saves UTF8 by default at some point (with or without BOM) - check that (its a setting in the newer versions iirc) |
| |
TWW
Registered: Jul 2009 Posts: 555 |
Yeah could be something with the version thingy.
Updated NP++ to latest version on one that buggs out.
SET: settings - Preferances - new doc
- tried UTF8 with or without BOM
No difference, but probably only apliccable to new docs.
SET: Encoding
- Tried UTF8 with / without BOM
BOM = NFG. In pure UTF-8, same issue happens.
Could not find any setting for file save'ing override.
Have to check the computer which this actually works on and compare settings.
Edit: Seems there may be a windows setting for UTF8 support for various languages which needs to be adjusted. Will try this out. |
| |
soci
Registered: Sep 2003 Posts: 486 |
Uh, oh, until now I didn't knew what I've missed.
Just create the screen, freeze, save, then include it as binary. Line start at $d1, x $d3, y $d6 for finding out the offsets using the cursor. Or use a PETSCII or tilemap editor, same trick.
It's a static asset, apart from the challenge factor it's not worth to waste time on embedding it in the source. |