Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect display of formatting characters. #93

Closed
gdude2002 opened this issue Dec 11, 2016 · 9 comments
Closed

Incorrect display of formatting characters. #93

gdude2002 opened this issue Dec 11, 2016 · 9 comments

Comments

@gdude2002
Copy link

gdude2002 commented Dec 11, 2016

I posted a comment on Curse, but then realised you guys had an issue tracker here.


MC: 1.10.2 (Multiplayer)
Forge: 12.18.3.2185
Enchiridion: 1.10.2 - 3.1.14

It seems that formatting (using the section sign) isn't saving correctly on the server. On restarting my client and rejoining the server, all section signs are prefixed with a Unicode accented A. Any ideas on this one?

Even if I manually go in and remove these characters, they come back if I restart my client and rejoin.

@GirafiStudios
Copy link
Contributor

How are you setting the text colors ? :)

@gdude2002
Copy link
Author

By pasting in the Minecraft formatting codes, eg §4 for dark red.

Also, I just noticed this didn't actually sync to the server - it's stored
locally, which explains why it gets reloaded when I restart the client.

@GirafiStudios
Copy link
Contributor

GirafiStudios commented Dec 11, 2016

Setting the colors with the Minecraft color codes are not the way you are meant to color your text in Enchiridion.
Instead you are meant to use something like: " [color=red]Rules & guidelines "

@gdude2002
Copy link
Author

gdude2002 commented Dec 11, 2016 via email

@GirafiStudios
Copy link
Contributor

[b]Text[/b] to do bold text etc.

@gdude2002
Copy link
Author

so, bold, italic, underline, reset and.. k?

@joshiejack
Copy link
Owner

https://github.com/PenguinSquad/Enchiridion/blob/1.10.2/src/main/java/joshie/enchiridion/util/PenguinFont.java#L79

Please don't ask why I did this, stupid me thought it would be easier.

@gdude2002
Copy link
Author

It's not an awful way of doing it. I still think you should be able to support people adding the signs in manually, though - maybe it's a file encoding issue?

@gdude2002
Copy link
Author

@joshiejack @GirafiStudios This looks to be a wider issue, actually.

You might want to check the file encoding of these JSON files, it looks like they can't really handle Unicode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants