TRichView import MS Word file with not-English (Unicode)
TRichView import MS Word file with not-English (Unicode)
I'm trying to open file with russian name using OfficeConverters(TRichView version 13.6.2 with Delphi XE2 on Vista machine with English locale). I've got error -1. I don't what does it mean. Usually instead of error code user can get normal message such 'Cannot open file due to ...' I can open the same file if I rename it with English name.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Unfortunately, converters require DOS (OEM) file names (it seems so stupid, but it is so). Unfortunately, Russian characters cannot be converted to English OEM file name.
The only solution for your application is copying the file in a temporal location, renaming it without Russian characters, and then open this temporal copy.
The only solution for your application is copying the file in a temporal location, renaming it without Russian characters, and then open this temporal copy.