Not displaying accented characters in INI files
-
Repro steps:
- Create a new document (with encoding set by default to UTF-16 BOM).
- Paste this text: "foo=¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ ". This displays correctly.
- Change language to “INI file”. The The text to the right of the comma now displays like this:
This consistently reproes with any text that contains any of the above characters, with all fonts I installed. In particular with “Tahoma” and “Unifont”. It also reproes with other built in languages.
However, it does not repro with user defined languages. So, as a workaround I defined myself a user defined language. However, with that I wasn’t able to reproduce the nice coloring that distinguishes the name, the equal sign, and the right hand side like this:
━━━━━━━━━━━━━━━━━━━━━
Debug info:
Notepad++ v8.6.7 (64-bit)
Build time : May 12 2024 - 20:04:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : “C:\junk\crumbs.txs”
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.4412
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4) -
@SebastianH said in Not displaying accented characters in INI files:
foo=¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
It works for me:
=>
My font is Deja Vu Sans Mono – a free / open-source monospace font with a really good selection of Unicode glyph coverage.
The font you mentioned, Tahoma, is a proportional font, not a monospace font, so is not the kind of font I recommend for Text Editing. But it works for me, too:
You might want to try to change your Settings > Preferences > MISC > Use DirectWrite setting, then restart, and see if it has the same behavior for you. (It works the same for me whether DirectWrite is on or off, but sometimes the DW behaves differently with different versions of the same font.)
-
@PeterJones said in Not displaying accented characters in INI files:
Use DirectWrite s
Thanks, that solved the problem.
(BTW, there was an error in my OP: Replace “comma” → “equal sign”.)