Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > NP++ Character de/encoding
2025-05-30 12:02
TWW

Registered: Jul 2009
Posts: 555
NP++ Character de/encoding

2025-05-30 12:05
TWW

Registered: Jul 2009
Posts: 555
No idea what's going on. Press "quote to read post #1
2025-05-30 12:32
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 =)
2025-05-30 12:40
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.
2025-05-30 14:15
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.
2025-05-30 14:22
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)
2025-05-30 15:05
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.
2025-05-31 07:24
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Fred/Channel 4
Bieno/Commodore Plus
Guests online: 443
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Uncensored  (9.5)
9 Wonderland XIV  (9.5)
10 No Bounds  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Stormbringer  (9.7)
3 Fungus  (9.6)
4 Booze  (9.5)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.04 sec.