But the problem is, if you try to insert the txt file first, it is ok. But if html file is inserted first, then only insert txt file, i will have that problem.
>>I think the text file is inserted with wrong encoding.
>>What's the encoding of this file? When I open it in Notepad, it does not >>look better.
>>Please run ActionTest demo, first insert html file "1.htm", then inisert txt >>file "1.txt", you will find out that the txt file content inserted with >>unreadable characters. "1.png" is the screen I captured from my pc when >>running Actionext demo. Thanks
did u receive my email on "insert file content unreadab
-
- Site Admin
- Posts: 17606
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Insertion of text file depends on the style of the current text (at the place of insertion). I assume your document is in Unicode. When you insert a Unicode text file, it does not depend on the current text. However, when you insert a non-Unicode text file, it is converted to Unicode, and a language for the conversion is determined by the charset of the current text. So, to load, for example, a Japanese text, you need to assign an index of text style with Charset=SHIFTJIS_CHARSET to CurTextStyleNo.
PS: we plan to add a new parameter to text insertion, specifying the code page for this file.
PS: we plan to add a new parameter to text insertion, specifying the code page for this file.