Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jun : D2007 WideStrings Issue
| Subject: | D2007 WideStrings Issue |
| Posted by: | "Graham Powell" (grah..@deephaven.co.uk) |
| Date: | Fri, 1 Jun 2007 09:54:14 |
I know this is a bit picky but is this a known issue?
Sample of code:
if WideFileExists (message_filename) then
begin
MessageStringList := TWideStringList.Create;
MessageStringList.LoadFromFile (message_filename);
end;
This only works if the file is actually a Unicode file. If I use the
TMSUnicode components, they are smart enough to know if the file is actually
Unicode or not.
if WideFileExists (message_filename) then
begin
MessageStringList := TTntStringList.Create;
MessageStringList.LoadFromFile (message_filename);
end;
Is this something that will be fixed or do we just have to cope with it by
ensuring that all files loaded are Unicode.
Graham