Search code examples
cwindowswindows-7unicodeansi

Windows application ANSI to Unicode


I have made a mistake by developing a big Windows application that supports only ANSI. What are all the impacts, if my application doesn't support Unicode? Also, I am planning to migrate my code to Unicode. As, I am completely blocked due to the critical time factor of my task, could someone help me?

My target environment: XP, Windows Vista, Windows 7 (both 32 bit and 64 bit). It's enough if my application supports only English, but it should run anywhere in the world.

Note: I am not getting input from the user as strings.


Solution

  • What are all the impacts, if my application doesn't support unicode?

    It probably won't be able to deal with Unicode in

    • UI elements (no problem is your UI doesn't have any text entry facilities)
    • File paths
    • Text file content
    • Translation messages (no problem as you state English to be enough)
    • File formats like XML
    • Registry data (I think)

    I won't claim to have listed all the impacts. I'll make this a community wiki, feel free to add to the list.

    i am planning to migrate my code to Unicode? […] could some one help me?

    The first sentence is not a question, is it? I doubt SO is the right place to search for people who'll help you porting a “big” application, except by answering specific questions whenever you get stuck.