<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I can&#x27;t figure out how to get through this problem about UTF-8 conversion.]]></title><description><![CDATA[<p dir="auto">Hi everybody,<br />
I can’t figure out how to get through this problem about UTF-8 conversion.<br />
Here’s the steps:</p>
<ol>
<li>Open a ANSI text file (.txt or .php)</li>
<li>The text does not have any special or accented characters</li>
<li>Convert text into UTF-8 without BOM</li>
<li>close file</li>
<li>re-open same file: it’s again ANSI</li>
</ol>
<p dir="auto">What should I do in order to write PHP encoded as UTF-8?</p>
<p dir="auto">P.S.: If text does have special or accented characters, it correctly encodes into UTF-8.<br />
Version of notepad++ is 7.2.2 32bit</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13096/i-can-t-figure-out-how-to-get-through-this-problem-about-utf-8-conversion</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 00:52:49 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13096.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Jan 2017 16:22:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I can&#x27;t figure out how to get through this problem about UTF-8 conversion. on Wed, 18 Jan 2017 09:20:20 GMT]]></title><description><![CDATA[<p dir="auto">if you set the encoding to UTF-8 wihtout BOM, the file without any UTF-8 encoded chars will be physical the same like an ansi file. NPP will open the file in the default charset as there is nothing encoded in it.</p>
<p dir="auto">Using UTF-8 with BOM will add 3 chars to the document that might apear in the page if you include files - maybe thats your reason to use without BOM.</p>
<p dir="auto">i am adding following code in PHP:</p>
<pre><code> &lt;?php
 # UTF8 check: öäüßÖÄÜ にほんご
</code></pre>
<p dir="auto">then save it as UTF-8 without BOM<br />
NPP will identify the UTF-8 encoded japanese/german mix and recognise the document as UTF-8 without BOM.<br />
please be aware that you need to mark the html-output as UTF-8 to avoid browsers to show rubbish.</p>
<pre><code>header("Content-Type: text/html; charset=utf-8");
?&gt;&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta charset="UTF-8"&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/21004</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21004</guid><dc:creator><![CDATA[René W.]]></dc:creator><pubDate>Wed, 18 Jan 2017 09:20:20 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t figure out how to get through this problem about UTF-8 conversion. on Thu, 12 Jan 2017 17:17:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/francesco-mapelli" aria-label="Profile: Francesco-Mapelli">@<bdi>Francesco-Mapelli</bdi></a></p>
<p dir="auto">I don’t think you have a problem. I am fairly certain that if a file does not contain any special characters, then the ANSI and the UTF-8 without BOM versions are identical.</p>
<p dir="auto">Under <em>Settings-&gt;Preferences-&gt;New Document Encoding</em>, select <em>UTF-8</em> and also check the <em>Apply to opened ANSI files</em> box. Then when you open your “non-special” text file, NPP will tell you it is UTF-8. But, in reality, it is both UTF-8 and ANSI.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20883</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20883</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Thu, 12 Jan 2017 17:17:33 GMT</pubDate></item></channel></rss>