User Tag List

Results 1 to 8 of 8

Thread: Read Accented characters from INI file

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro

    Join Date
    Jun 2006
    Location
    UK
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Question Read Accented characters from INI file

    I think I know the answer to this one but want to ask the question here before I spend any money.

    If I have a line in an INI file which contains an accented (or foreign) character then my application doesn't work when it reads this in.

    Example:
    Name=Grêgoire

    If I remove the accented character then it works fine.

    After doing a search through the forums it looks like I need to buy the Unicode module for MMF 2 Dev.
    Is this correct?

    Many Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro

    Join Date
    Jun 2006
    Location
    UK
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Anybody have any information regarding this?
    Thanks

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    Actually it works if the INI file contains only characters of the current user's language, the one defined in the Windows "Language for non Unicode apps" property.

    For example on a French machine your INI can contain name=Grégoire, no problem. But on the same machine it cannot contain Japanese characters for example, these characters will be converted to '?' (or garbage) when the string is read from the INI.

    In the Unicode version of MMF2 the INI object has an UTF8 option, to save characters to UTF8 format, so it should work with any character.

    However the current Unicode version has some limitations: it has no HWA features and needs more text encoding options when it saves/loads files so that it's more compatible with the non Unicode version (I think it only saves Unicode text files). I.e. your application might not run strictly identically. Those features are coming so you should probably wait a bit. If you don't need HWA and don't save text files, then it should run about the same though.

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro

    Join Date
    Jun 2006
    Location
    UK
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Thanks for the response.

    A client in Belgium is running one of my apps and if they set the ini file to contain name=Grégoire it doesn't work for them. I could understand it not working for me but they are insisting that they are having problems.

    The "Language for non Unicode apps" property that you mention. If I access that through the Administrative tab of the Region and Language dialog box and set it to French(Belgium) it also doesn't work for me.
    Any other help would be greatly appreciated as I don't really want to use the Unicode version if it has limitations.

    Thanks

  5. #5
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    What do you mean exactly by "it doesn't work for them"? What doesn't work?

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro

    Join Date
    Jun 2006
    Location
    UK
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    In the ini file we have for example "name=Grégoire"

    The application reads the ini file and populates say a field with the "name".
    When the field receives its name it then uses Lacewing to join a group with that name.
    If using an accented character it doesn't connect to the group.

    If I change the ini file to say "name=Gregoire" (note: no accented characters)
    Then it works straight away and connects to the group.

  7. #7
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    I think the problem is with Lacewing rather than with the INI object.

  8. #8
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro

    Join Date
    Jun 2006
    Location
    UK
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Thanks for your help. I'll raise this in the Lacewing section

Similar Threads

  1. Accented characters in Lacewing
    By madmac in forum Lacewing
    Replies: 5
    Last Post: 29th February 2016, 07:42 PM
  2. Read ini - external file
    By Matriax in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 15th October 2013, 09:35 AM
  3. How to read an ini file?
    By BenjaminG in forum XNA Export Module Version 2.0
    Replies: 4
    Last Post: 18th September 2013, 06:10 PM
  4. Read a file off the internet
    By clankfan1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd January 2011, 06:30 PM
  5. How do I read from a file?
    By LittleMysterio in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 15th September 2008, 07:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •