<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:57:06 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-2215] Encoding errors in server.properties</title>
                <link>https://bugs.mojang.com/browse/MC-2215</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;Thebug&quot;&gt;&lt;/a&gt;The bug&lt;/h3&gt;
&lt;p&gt;The &lt;tt&gt;server.properties&lt;/tt&gt; file doesn&apos;t seems to handle unicode UTF-8 correctly, while still trying to recode it as such. This is most apparent on motd where you can&apos;t type non-ascii characters and save it as UTF-8. &lt;/p&gt;

&lt;p&gt;For example if trying to change motd to &quot;motd=&#167;lA Minecraft Server&quot;, when the server starts, the properties file change it into &quot;motd=\u00C2\u00A7lA Minecraft Server&quot; and the multiplayer screen shows gibberish.&lt;/p&gt;

&lt;p&gt;You can though somehow overcome this by encode the file as latin1 (iso-8859-1). While the &lt;tt&gt;server.properties&lt;/tt&gt; still gets changed into &quot;motd=\u00A7lA Minecraft Server&quot;, at least it shows up correctly in the multiplayer list.&lt;/p&gt;

&lt;p&gt;This happens off course for all non-ascii characters, like &#223;, &#197;, etc.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;CauseandsuggestedfixfromOrthotope%3A&quot;&gt;&lt;/a&gt;Cause and suggested fix from &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=Orthotope&quot; class=&quot;user-hover&quot; rel=&quot;Orthotope&quot;&gt;Orthotope&lt;/a&gt;:&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;Looking at the code, the problem here is the use of the java.util.Properties.load(InputStream) and Properties.store(OutputStream, String) methods. Both of these assume the use of ISO 8859-1 encoding, and this cannot be changed. The solution is to use the Properties.load(Reader) and Properties.store(Writer, String) methods instead; InputStreamReader and OutputStreamWriter can be used to wrap the FileInputStream and FileOutputStream respectively and specify the UTF-8 charset.&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="13617">MC-2215</key>
            <summary>Encoding errors in server.properties</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="boq">[Mojang] Bartosz Bok</assignee>
                                    <reporter username="azatoth">Carl F&#252;rstenberg</reporter>
                        <labels>
                            <label>encoding</label>
                            <label>server.properties</label>
                            <label>utf8</label>
                    </labels>
                <created>Sun, 4 Nov 2012 13:27:34 +0100</created>
                <updated>Tue, 9 May 2023 09:31:58 +0200</updated>
                            <resolved>Tue, 9 May 2023 09:31:58 +0200</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.3</version>
                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.6.4</version>
                    <version>Minecraft 1.7.1</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w05b</version>
                    <version>Minecraft 14w06b</version>
                    <version>Minecraft 14w07a</version>
                    <version>Minecraft 14w08a</version>
                    <version>Minecraft 1.8</version>
                    <version>Minecraft 15w49b</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 16w32a</version>
                    <version>Minecraft 16w32b</version>
                    <version>Minecraft 16w33a</version>
                    <version>Minecraft 1.11.2</version>
                    <version>Minecraft 1.12.2</version>
                    <version>Minecraft 18w16a</version>
                    <version>Minecraft 1.13.1</version>
                    <version>1.14.4</version>
                    <version>1.16.1</version>
                    <version>20w27a</version>
                    <version>1.18.2</version>
                    <version>1.19.3</version>
                    <version>23w05a</version>
                                    <fixVersion>1.20 Pre-release 1</fixVersion>
                                                        <votes>32</votes>
                                    <watches>21</watches>
                                                                            <comments>
                            <comment id="1237125" author="JIRAUSER734481" created="Sat, 11 Feb 2023 16:34:56 +0100"  >&lt;p&gt;Can confirm in 23w06a&lt;/p&gt;</comment>
                            <comment id="1234917" author="JIRAUSER734481" created="Wed, 1 Feb 2023 17:07:07 +0100"  >&lt;p&gt;Can confirm in 23w05a and 1.19.3&lt;/p&gt;</comment>
                            <comment id="1156255" author="JIRAUSER716300" created="Fri, 22 Apr 2022 16:55:50 +0200"  >&lt;p&gt;Confirmed (Still) in 1.18.2 on FreeBSD&lt;/p&gt;</comment>
                            <comment id="756391" author="darth cobby" created="Sun, 5 Jul 2020 10:44:29 +0200"  >&lt;p&gt;Confirmed in 1.16.1 and 20w27a.&lt;/p&gt;</comment>
                            <comment id="591495" author="liach" created="Mon, 14 Oct 2019 20:53:44 +0200"  >&lt;p&gt;just switch the call from Files.newInputStream/newOutputStream to Files.newBufferedReader/newBufferedWriter and things will be fine. it isn&apos;t that hard, just a one line fix in abstract property handler.&lt;/p&gt;</comment>
                            <comment id="591489" author="jamesmuell" created="Mon, 14 Oct 2019 20:15:04 +0200"  >&lt;p&gt;Still present in the 1.14.4 jar.&lt;/p&gt;

&lt;p&gt;(Feels weird to report it, though, because it&apos;s more of a feature request to support unicode.)&lt;/p&gt;</comment>
                            <comment id="270929" author="marcono1234" created="Mon, 7 Dec 2015 13:27:12 +0100"  >&lt;p&gt;Confirmed for&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;b&gt;15w49b&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="208598" author="dx" created="Tue, 11 Nov 2014 06:15:14 +0100"  >&lt;p&gt;&#167; is not the only non-ascii character in the world. You may not need characters outside of the ASCII set, but other people do.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://dump.dequis.org/qfoCx.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;That&apos;s supposed to read &quot;&#12400;&#12363;&quot;.&lt;/p&gt;</comment>
                            <comment id="208597" author="leotomasmc" created="Tue, 11 Nov 2014 05:57:48 +0100"  >&lt;p&gt;OK so I don&apos;t know a lot about this weird coding stuff but I can say that even though its changing the text for me it still runs fine no weird text on my server more even though it does not use &#162; looking thing (on tablet sorry) and its in color and all so I don&apos;t get how this is a bug&lt;/p&gt;</comment>
                            <comment id="203659" author="luckeyjim" created="Thu, 16 Oct 2014 00:43:14 +0200"  >&lt;p&gt;Still broken in 1.8 despite what the status says. Also why is it &quot;unconfirmed&quot;?&lt;/p&gt;</comment>
                            <comment id="203628" author="dx" created="Wed, 15 Oct 2014 23:18:10 +0200"  >&lt;p&gt;&quot;Resolved - awaiting response&quot;? Wat.&lt;/p&gt;

&lt;p&gt;Still happening with minecraft_server.1.8.1-pre1.jar&lt;/p&gt;</comment>
                            <comment id="172090" author="JIRAUSER71590" created="Wed, 9 Jul 2014 17:43:14 +0200"  >&lt;p&gt;you mean 27b&lt;/p&gt;</comment>
                            <comment id="172062" author="jar_" created="Wed, 9 Jul 2014 16:46:00 +0200"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;14w21b&lt;/b&gt; / Launcher version &lt;b&gt;1.4.4&lt;/b&gt; or later? If so, please &lt;em&gt;update the affected versions&lt;/em&gt; in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="152859" author="JIRAUSER71590" created="Sat, 26 Apr 2014 17:47:16 +0200"  >&lt;p&gt;the changeing of what you type, I can confirm, however that it changes to weird text I cannot because it has always worked for me propperly&lt;/p&gt;</comment>
                            <comment id="152857" author="leotomas" created="Sat, 26 Apr 2014 17:41:11 +0200"  >&lt;p&gt;I did that for world with the random characters thing and file name was the sish thing then k and in server.propertys it was that weird coding and the server ran the file I wanted so no effect&lt;/p&gt;</comment>
                            <comment id="142338" author="luckeyjim" created="Fri, 21 Feb 2014 22:17:04 +0100"  >&lt;p&gt;Still broken in 14w08a.&lt;/p&gt;</comment>
                            <comment id="142319" author="ezekielelin" created="Fri, 21 Feb 2014 21:19:06 +0100"  >&lt;p&gt;Is this still a concern in the latest Minecraft version &lt;b&gt;14w08a&lt;/b&gt;? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="115951" author="luckeyjim" created="Sun, 27 Oct 2013 16:29:31 +0100"  >&lt;p&gt;This is still a problem with 1.7.2. How do you update the affected versions?&lt;/p&gt;</comment>
                            <comment id="90165" author="amotohiko" created="Sat, 13 Jul 2013 08:10:55 +0200"  >&lt;p&gt;I can still reproduce this issue on 1.6.2 server/client.&lt;/p&gt;


&lt;p&gt;And when I set Japanese characters on server.properties file like this:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;motd=Minecraft\u30B5\u30FC\u30D0\u30FC&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;the client don&apos;t show them properly.&lt;/p&gt;</comment>
                            <comment id="58776" author="orthotope" created="Thu, 4 Apr 2013 12:49:24 +0200"  >&lt;p&gt;Looking at the code, the problem here is the use of the java.util.Properties.load(InputStream) and Properties.store(OutputStream, String) methods. Both of these assume the use of ISO 8859-1 encoding, and this cannot be changed. The solution is to use the Properties.load(Reader) and Properties.store(Writer, String) methods instead; InputStreamReader and OutputStreamWriter can be used to wrap the FileInputStream and FileOutputStream respectively and specify the UTF-8 charset.&lt;/p&gt;

&lt;p&gt;As for the current behavior, non-ascii characters are encoded as (slightly modified) UTF-8, then written to file as escaped Unicode characters; when read, the escape sequences are handled properly, but it is not converted back into UTF-8. The section sign (&#167;, \u00a7) happens to be encoded as \u00c2\u007a (&#194;&#167;), so formatting codes work, aside from adding an extra character. Many other characters do not contain themselves when encoded (such as &#247; (\u00f7), encoded as \u00c3\u00b7 (&#195;&#183;)).&lt;/p&gt;</comment>
                            <comment id="55245" author="luckeyjim" created="Mon, 18 Mar 2013 23:14:16 +0100"  >&lt;p&gt;Still affects 1.5.&lt;/p&gt;</comment>
                            <comment id="44406" author="luckeyjim" created="Fri, 8 Feb 2013 01:08:10 +0100"  >&lt;p&gt;This bug still exists in 1.4.7 server. I&apos;m a bit surprised by this one. Aren&apos;t you guys Swedish? Don&apos;t you use non-ascii characters?&lt;/p&gt;</comment>
                            <comment id="26413" author="dx" created="Mon, 3 Dec 2012 09:05:29 +0100"  >&lt;p&gt;Stumbled upon this one while trying to set fabulous unicode to my motd. This was very frustrating.&lt;/p&gt;

&lt;p&gt;I workarounded this bug quickly, since after the first restart i saw it was converting my utf-8 into hex escapes but decoding as latin1. So I simply used a python shell to convert text to unicode escapes.&lt;/p&gt;

&lt;p&gt;But on my first test I found out the charset of the multiplayer server list is VERY limited, similar to the charset we had before multilanguage support was added. &quot;&#225;&#233;&#237;&#243;&#250;&quot; work fine, color codes with &#167; work fine (if anyone reading this needs a quick way to insert color codes, use &quot;\u00A7&quot;), but &#223; or any non-latin1 unicode chars appear as &quot;?&quot;.&lt;/p&gt;

&lt;p&gt;Setting the client language to pirate or something that uses the alternate font has no effect (Although I noticed &#167;k doesn&apos;t work anymore, but that&apos;s a different bug I don&apos;t care about)&lt;/p&gt;

&lt;p&gt;Anyway, if you fix this bug, PLEASE expand the charset of motds on the server list to match the chat. It&apos;d be useless otherwise.&lt;/p&gt;</comment>
                            <comment id="19539" author="azatoth" created="Thu, 8 Nov 2012 19:25:00 +0100"  >&lt;p&gt;Still present in 1.4.4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="499743">MC-250485</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="160901">MC-112699</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="37047" name="2013-07-13_15.03.47.png" size="20516" author="amotohiko" created="Sat, 13 Jul 2013 08:10:55 +0200"/>
                            <attachment id="123308" name="server.properties" size="769" author="banana478" created="Thu, 18 Aug 2016 22:46:56 +0200"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 18 Aug 2016 21:32:00 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11901" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="12000"><![CDATA[Text]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12200" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Mojang Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11702"><![CDATA[Normal]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0fthb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12201" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>Triaged Time</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 30 Sep 2020 09:25:12 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>