Skip to content

Special character not displaying as expected #1716

Answered by SquidDev
B3N64 asked this question in Q&A
Discussion options

You must be logged in to vote

Ahh. I suspect what's going on here is that your file is saved as UTF-8, but CC/Lua only works on plain bytes. This means that the Unicode codepoint is not saved as a literal \131, but instead encoded as \194\131.

You could possibly configure your editor to save as latin1, but it's probably just easier to use escape codes (so \131) rather than pasting in the characters.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by B3N64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1714 on February 09, 2024 08:36.