<?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[Inserting UTF-8 Text]]></title><description><![CDATA[<p dir="auto">I am trying to create a plugin for inserting mathematical symbols for my mathematics documentation.<br />
I have used the following to accomplish this:<br />
SendMessageW(nppData._scintillaMainHandle, SCI_REPLACESEL, NULL,(LPARAM)text)</p>
<p dir="auto">However, after executing this command, the entire document view is temporarily changed to ANSI, causing my newly inserted character, as well as other UTF-8 characters to display incorrectly. If I change tabs, then return back to this one, the file view is reverted back to the default UTF-8 and the characters display correctly. I have tried various approaches to fixing this such as SCI_SETCODEPAGE with SC_CP_UTF8 as well as using WM_PAINT to no avail.</p>
<p dir="auto">Is there a way to fix this issue?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20799/inserting-utf-8-text</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 18:36:15 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20799.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Feb 2021 06:22:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inserting UTF-8 Text on Fri, 26 Feb 2021 18:30:52 GMT]]></title><description><![CDATA[<p dir="auto">I managed to solve the issue this morning after reviewing the source to the mime tools plugin.</p>
<p dir="auto">The following lines of code resulted in the data being displayed correctly.<br />
SendMessageW(nppData._scintillaMainHandle, SCI_TARGETFROMSELECTION, 0, 0);<br />
SendMessageW(nppData._scintillaMainHandle, SCI_REPLACETARGET, len, (LPARAM)text);</p>
<p dir="auto">Thank you for the assistance.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63304</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63304</guid><dc:creator><![CDATA[Chester Fritz]]></dc:creator><pubDate>Fri, 26 Feb 2021 18:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to Inserting UTF-8 Text on Fri, 26 Feb 2021 13:08:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21309">@Chester-Fritz</a> said in <a href="/post/63265">Inserting UTF-8 Text</a>:</p>
<blockquote>
<p dir="auto">SendMessageW(nppData._scintillaMainHandle, SCI_REPLACESEL, NULL,(LPARAM)text)</p>
</blockquote>
<p dir="auto">This seems to be an extreme route to go to, to do this.<br />
Curious why you would try it this way – is there some advantage?<br />
I agree with <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> that some more info about your workflow would definitely help.</p>
<p dir="auto">Perhaps <a href="https://community.notepad-plus-plus.org/topic/20350/how-to-insert-text-symbols-in-notepad">THIS THREAD</a> is of some interest.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63283</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63283</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 26 Feb 2021 13:08:30 GMT</pubDate></item><item><title><![CDATA[Reply to Inserting UTF-8 Text on Fri, 26 Feb 2021 09:34:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21309">@Chester-Fritz</a></p>
<p dir="auto">I have not had such a problem yet.<br />
Could you give us an example of the text to be inserted and a document content so that it can be understood?<br />
Preferably as minimal as possible.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63268</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63268</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 26 Feb 2021 09:34:43 GMT</pubDate></item></channel></rss>