• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Solved [Indev 0.49] "é" Not Displaying Correctly In Content Pack Information Boxes

Tornado9797

Content Developer
P3D Developer
Global Moderator
Describe the bug you experienced here.

What I expected to happen:
The symbol "é" to display correctly in the info.dat part of the Content Pack in-game.

What actually happened:
The symbol was instead replaced with a strange symbol that might resemble a black box with a question mark in the center (symbol for missing symbol).

Steps to reproduce:
1. Create a Content Pack (guide here)
2. Anywhere in the info.dat file, insert a "é" symbol.
3. Open up the game and check that Content Pack's information button. The symbol should replace the "é" symbol.
2014-06-14_19.28.24.png

(Add a crash log here if available and enclose it in the code tag with this button:
)

(No Crash Occurred)
 

nilllzz

Original Developer
Administrator
P3D Developer
I'm not 100% certain what you mean by that. I'll just send you the file. It looks fine if you open it through Notepad.
Notepad always encodes the file in ANSI. That one only has 7 bits to store a character in, meaning that it has a Unicode range from 0 to 127.
The é has a Unicode index of more than 128, meaning the game cannot read it correctly and substitutes the character with the "? diamond" char.
In order to save Unicode characters that have a higher index than 128, you go to "Save as..." in Notepad and then select in the Encoding box either "UTF-8" or "Unicode".
 

Tornado9797

Content Developer
P3D Developer
Global Moderator
Notepad always encodes the file in ANSI. That one only has 7 bits to store a character in, meaning that it has a Unicode range from 0 to 127.
The é has a Unicode index of more than 128, meaning the game cannot read it correctly and substitutes the character with the "? diamond" char.
In order to save Unicode characters that have a higher index than 128, you go to "Save as..." in Notepad and then select in the Encoding box either "UTF-8" or "Unicode".
Yes, it now works. I'll be moving this thread to Community Support and label it as Solved.
2014-06-14_19.45.21.png
 
Top