Closed Gateswong closed 11 years ago
Looks like we suck at parsing specific Unicode files. Let me do some investigating.
This is an issue in my settings stuff. i will fix upstream, but because the nuget package puts the classes into the solution it can be fixed inline.
Tracking at https://github.com/JakeGinnivan/SettingsProvider.net/issues/1
@JakeGinninvan :sparkles:
Upstream fixed
Turns out we pulled in the wrong version of SettingsProvider.NET - 1.6.1 will be necessary.
Ok, all good to go
Problem
When opened the file including CJK chars in filename/path. The 'RecentFiles' in
MarkPadSettings.settings
appears to be not able to read and cause an error.In that '.settings' file, the filename is
MarkPad 娑擃厽鏋冮崥?md
which should beMarkPad 中文名.md
.Here is the exception:
Temporary Solution
In source code, after I change
Encoding.Default.GetString(ms.ToArray());
tovar jsonString = Encoding.UTF8.GetString(ms.ToArray());
, and this works in my win 7, but in other systems or languages are not tested.