Grid Sage Forums

REXPaint => Everything REXPaint => Topic started by: dave on June 17, 2017, 08:59:01 AM

Title: Exporting text exports space as Unicode c2a0
Post by: dave on June 17, 2017, 08:59:01 AM
Hi there,

I'm doing a little bit of simple ascii art in RexPaint (either ANSI or normal versions) and I'm exporting in txt mode using CTRL-T.
Now, I would like the output to be normal 8-bit ASCII.
However, I notice that the file that I export contains c2a0 for each space character (i.e. unicode no-break-space). However, I think it would be more normal to get a regular space code 20 since the rest of the characters (so far!) that I've tried are exported as their normal 8-bit ascii codes.

Cheers.
Title: Re: Exporting text exports space as Unicode c2a0
Post by: Kyzrati on June 18, 2017, 12:45:27 AM
Hi dave, I originally implemented two other text export methods before settling on that approach because it turns out exporting to UTF8 was the only way to get the output on all systems looking exactly as you see it in a REXPaint image (otherwise systems for which CP437 is not the default code page will not be able to properly show extended ASCII!).

I'll stick with UTF8 as the default, but I've added a new option in the config file "txtOutputUTF8," that you can turn off to use CP437 character codes. Here's (http://www.gridsagegames.com/blogs/fileDownload.php?fileName=REXPaint-v1.03_nonUTF_patch.zip) patched .exe you can use until the next release where I'll include it as a regular feature :) (Edit: Feature now included with v1.04)