tweecode / twine

UI for creating hypertext stories
http://twinery.org
657 stars 97 forks source link

Non-ASCII Characters: Cannot export source or proofing copy #16

Closed devibri closed 10 years ago

devibri commented 12 years ago

Using non-ASCII characters (some characters copied from Microsoft Word, or in other languages) results in an inability to export source code or a proofing copy. It also messes up the coloring in the Twine boxes.

The error reads: ascii codec can't enode character u"\2003' in position 2112: ordinal not in range (128)

christopherliu commented 12 years ago

(By the way: Did the workaround script I sent you help? I've sent an updated version with \u2003 included.)

christopherliu commented 12 years ago

Issue 19 (https://github.com/tweecode/twine/issues/19) is connected to this - fixing 19 will fix this issue.

Stormrose commented 12 years ago

I have made improvements to #19 that fix syntax highlighting and exporting a proofing copy. I'd be interested to know if copy and paste from word is working and how the proofing copy performs with non cp1251 characters sets (e.g. Chinese).

webbedspace commented 10 years ago

This seems to be working now.