Thread: [utf8vcl-general] [utf8vcl - General] LoadFromFile
Status: Alpha
Brought to you by:
bluelive
From: SourceForge.net <no...@so...> - 2007-05-02 09:09:40
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4290381 By: nobody Hi... Today i found UTF8VCL, it is very great :) I am facing a little problem, or may i don't "How to..." As exemple, if i want to load a file into a memo. Memo1.LoadfromFile( ... ) and the file content is true ASCII with accent characters like é à ê and so on... What can i do to load it succesfully in the memo if i use UT8VCL ? It should be nice to have UTF8VCL detect this by itself. Carl. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |
From: SourceForge.net <no...@so...> - 2007-05-02 09:48:20
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4290443 By: bluelive utf8vcl works by assuming all acp encoded stuff is actually in utf8. so it also assumes the file yoru reading is in utf8 and not your local acp encoding. if you know the encoding of a file you should specify it explicitly when loading. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |
From: SourceForge.net <no...@so...> - 2007-05-03 09:20:21
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4292721 By: nobody Hello, Yes, i well understand. But, When we do a software that can load file, it is quite hard to explain to the users what is the utf8 encode, acp, etc... So... we have to do extra source code the encode or not each time a file is loaded. Other than do this, may be it is more simple to add a file check within the component itself before filling a component. Same for stream. Also... this is valid for an existing project in which we add utf8vcl. Everything done before the addition is more compatible. Finally... just as a suggestion... because utf8vcl is active with all components, it should be fine to have an exclusion list to specify if we do not want some components driven by utf8vcl. Carl ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |
From: SourceForge.net <no...@so...> - 2007-05-03 09:47:37
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4292744 By: bluelive The exclusion list is impossible because we often have no context to make the decision in the intercepts. If you are storing files in acp currently you allready have a problem there...., what if the file is moved to a computer with a different acp ? Personally i would advice what bds and notepad does, allow the user to pick an encoding when saving and loading. (with smart autodetecting, using things like a BOM) ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |
From: SourceForge.net <no...@so...> - 2007-07-21 09:13:16
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4424195 By: nobody So What function should I use ? I've try Utf8ToAnsi and it doesn't work. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |
From: SourceForge.net <no...@so...> - 2007-07-24 07:43:51
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4428840 By: bluelive You need to know the encoding of the file and convert using that. you need no conversion at all if the file is in utf8 without a bom. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |