Page 1 of 1

TRichView import MS Word file with not-English (Unicode)

Posted: Sat Apr 07, 2012 6:03 am
by fff13
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.

Posted: Fri Apr 13, 2012 6:37 pm
by Sergey Tkachenko
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.