HQJaTu / NPPTextFX

TextFX plugin for Notepad++
Other
118 stars 37 forks source link

TextFX Insert Date & Time has a coding error with Uft8 encoding on Notepad++ Chinese Version #2

Open aunhappy opened 6 years ago

aunhappy commented 6 years ago

Description of the Issue

I have encountered a character coding problem,when I inserted time in the Utf8 encoded file . As you can see , it give 7:15 2017/7/24 чǚһ and not 7:15 2017/7/24 星期一(Monday) . It is normal in ANSI encoded files . Is there anything can do to help?

Steps to Reproduce the Issue

  1. install TextFX plugin
  2. turn to utf-8 encode
  3. click TextFX->TextFX Insert->Date & Time - short fomat

Expected Behavior

19:57 2017/8/4 星期五

Actual Behavior

19:57 2017/8/4 чǚϥ image

Debug Information

Notepad++ v7.4.2 (32-bit) Build time : Jun 18 2017 - 23:34:19 Path : D:\Program Files (x86)\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 8.1 (64-bit) Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppTextFX.dll PluginManager.dll

HQJaTu commented 6 years ago

Acknowledged. Looks like something that existed in the old TextFX already. Lemme check if that can be fixed. On a hunch, it should be easy.