<?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[BOM and QtCreator, bug or not?]]></title><description><![CDATA[<p dir="auto">I use "QtScriptExtentions":<a href="http://doc.trolltech.com/4.7/qtscriptextensions.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.trolltech.com/4.7/qtscriptextensions.html</a> in my application. And have problem:<br />
If in <strong>init</strong>.js of my extension I write russian text (UTF-8 encoding) then in application I see strange symbols instead of russian letters.<br />
This problem is only Windows system (not Linux).</p>
<p dir="auto">I add "BOM charachers":<a href="http://en.wikipedia.org/wiki/Byte_order_mark" target="_blank" rel="noopener noreferrer nofollow ugc">http://en.wikipedia.org/wiki/Byte_order_mark</a> in my <strong>init</strong>.js with Hex editor help and problem disappear.<br />
But If I edit this file in Qt Creator again, BOM deleting.</p>
<p dir="auto">How you think, it's Qt Creator bug or not?</p>
]]></description><link>https://forum.qt.io/topic/2347/bom-and-qtcreator-bug-or-not</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 22:05:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/2347.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Dec 2010 22:31:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BOM and QtCreator, bug or not? on Tue, 14 Dec 2010 12:07:32 GMT]]></title><description><![CDATA[<p dir="auto">Denis: All this wold go away if microsoft would finally switch to unicode based encoding schemes by default. Mac and Linux are doing that for ages now and Windows does support it too (unicode is in there since Win 95 IIRC), it is just that they have not yet switched the default.</p>
<p dir="auto">A issue regarding BOM handling was recently fixed in the master branch of creator ("QTCREATORBUG-1857":<a href="http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1857" target="_blank" rel="noopener noreferrer nofollow ugc">http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1857</a>), maybe that fixes your BOM issue, too?</p>
]]></description><link>https://forum.qt.io/post/65135</link><guid isPermaLink="true">https://forum.qt.io/post/65135</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Tue, 14 Dec 2010 12:07:32 GMT</pubDate></item><item><title><![CDATA[Reply to BOM and QtCreator, bug or not? on Tue, 14 Dec 2010 12:04:05 GMT]]></title><description><![CDATA[<p dir="auto">We changed file encodings on all our development environment on all platforms to UTF-8 (Visual Studio and Qt Creator default settings - no more relying on the system default locale, all source files, etc.) and are happy without any problems. With that setup, no BOM are necessary for guessing the right encoding.</p>
<p dir="auto">For the C++ files there are some settings in the .pro file and the main function necessary, but that's not a big deal and is well documented.</p>
]]></description><link>https://forum.qt.io/post/65132</link><guid isPermaLink="true">https://forum.qt.io/post/65132</guid><dc:creator><![CDATA[goetz]]></dc:creator><pubDate>Tue, 14 Dec 2010 12:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to BOM and QtCreator, bug or not? on Tue, 14 Dec 2010 09:14:01 GMT]]></title><description><![CDATA[<p dir="auto">This is true, when i deploy a multilanguage program to linux and windows i become crazy for this :)<br />
Sometimes qtcreator say me that the file is locked and for editing i have to change the encode language.</p>
<p dir="auto">[quote author="Denis Kormalev" date="1292317409"]Tobias, files editing is done in Linux (utf-8) and at Linux it works ok, but when you try to compile and run it at Windows wrong encoding is used. BOM helps with this problem, but QtCreator loses BOM if you try to edit file again (at Linux or Windows).[/quote]</p>
]]></description><link>https://forum.qt.io/post/65086</link><guid isPermaLink="true">https://forum.qt.io/post/65086</guid><dc:creator><![CDATA[stukdev]]></dc:creator><pubDate>Tue, 14 Dec 2010 09:14:01 GMT</pubDate></item><item><title><![CDATA[Reply to BOM and QtCreator, bug or not? on Tue, 14 Dec 2010 09:03:29 GMT]]></title><description><![CDATA[<p dir="auto">Tobias, files editing is done in Linux (utf-8) and at Linux it works ok, but when you try to compile and run it at Windows wrong encoding is used. BOM helps with this problem, but QtCreator loses BOM if you try to edit file again (at Linux or Windows).</p>
]]></description><link>https://forum.qt.io/post/65084</link><guid isPermaLink="true">https://forum.qt.io/post/65084</guid><dc:creator><![CDATA[DenisKormalev]]></dc:creator><pubDate>Tue, 14 Dec 2010 09:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to BOM and QtCreator, bug or not? on Tue, 14 Dec 2010 08:47:31 GMT]]></title><description><![CDATA[<p dir="auto">Which encoding is Qt Creator using? It defaults to whichever encoding the system is using and unfortunately Windows is still defaulting to codepages:-(</p>
]]></description><link>https://forum.qt.io/post/65078</link><guid isPermaLink="true">https://forum.qt.io/post/65078</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Tue, 14 Dec 2010 08:47:31 GMT</pubDate></item></channel></rss>