[TIMOB-20288] Windows: File.write can't handle UTF-8 string
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-01T02:19:28.000+0000 |
Affected Version/s | Release 5.1.0 |
Fix Version/s | Release 5.3.0 |
Components | Windows |
Labels | qe-5.3.0 |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2016-01-29T02:00:20.000+0000 |
Updated | 2016-04-26T17:28:35.000+0000 |
Description
Ti.Filesystem.File.write
writes wrong UTF-8 data. For instance following code doesn't show the string correctly.
var filePath = Ti.Filesystem.applicationDataDirectory + "test.txt";
var file = Ti.Filesystem.getFile(filePath);
file.write("日本語 : Japanese");
alert(file.read().text);
https://github.com/appcelerator/titanium_mobile_windows/pull/542
Verified as fixed, The string is written and displayed correctly. Tested on: Nokia Lumia 928 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Ti SDK: 5.3.0.v20160421080259 Appc NPM: 4.2.5-3 App CLI: 5.3.0-36 Node v4.4.3 *Closing Ticket.*