Re: Problems with file names containing latin accent characters
Germán Blando <[email protected]> Mon, 12 Nov 2007 07:09:17 -0300
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <[email protected]> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi Riccardo<br> <br> The Win XP where I tested my application has the standard configuration, i.e. English language.<br> I can do the test in a spanish installation too. I will do it and comment the results later.<br> <br> Bye. German.<br> <br> Riccardo Cohen escribió: <blockquote cite="mid:[email protected]" type="cite"> <pre wrap="">I noticed also that on windows, metakit needs utf8 file names. But did not test on other plateforms.I supposed all plateforms need utf8 ? Anyway I rather changed my code to give utf8 to metakit. Any precision would be appreciated. Thanks Tecnonucleo wrote: </pre> <blockquote type="cite"> <pre wrap="">Hello all I've used Metakit for a while, and recently I had some issues with file names containing accent characters, like á or é. It only occurs in Windows XP. In Linux all works ok. But in Windows, when the file name had latin accent characters, Metakit suppress them and thus it tried to open a non existing file. I debug into Metakit source code and I found that the character missing happened in this line: MultiByteToWideChar(CP_UTF8, 0, fname_, - 1, wName, MAX_PATH); I'm not an expert in Win32 API, but after some googling I decided to change the CP_UTF8 parameter for CP_ACP. And then all began to work ok as in Linux. The new version of the previous line now looks like that: MultiByteToWideChar(CP_ACP, 0, fname_, - 1, wName, MAX_PATH); I'm not sure if it make sense to change the Metakit sources that way, but in any case I want to share this issue and maybe get some feedback about the patch I applied. Greetings, German </pre> </blockquote> <pre wrap=""><!----> </pre> </blockquote> <br> <pre class="moz-signature" cols="72">-- Saludos, Germán Blando Contable IVA - Liquidación de Iva para Estudios Contables <a class="moz-txt-link-freetext" href="http://www.interfase-soft.com.ar/contableiva/">http://www.interfase-soft.com.ar/contableiva/</a> Ubuntu OS <a class="moz-txt-link-freetext" href="http://www.ubuntu.com/">http://www.ubuntu.com/</a> </pre> <br> --~--~---------~--~----~------------~-------~--~----~<br> You received this message because you are subscribed to the "metakit" group. <br> To post to this group, send email to [email protected] <br> To unsubscribe from this group, send email to [email protected] <br> For more options, visit this group at http://groups.google.com/group/metakit?hl=en <br> -~----------~----~----~----~------~----~------~--~---<br> </body> </html> <br>