Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Converting unicode text from properties files

Options
  • 27-03-2007 1:42pm
    #1
    Closed Accounts Posts: 334 ✭✭


    Hi,

    Does anyone know of a converter for converting the following type of unicode:

    \u4e0d\u660e\u306a\u8a2d\u5b9a\u306e\u7a2e\u985e\u3067\u3059\u3002

    Thanks.


Comments

  • Closed Accounts Posts: 884 ✭✭✭NutJob


    in what language?

    Or do you just want to do it with your mind and a Unicode/ascii table


  • Closed Accounts Posts: 334 ✭✭WhatsGoingOn


    NutJob wrote:
    in what language?

    Or do you just want to do it with your mind and a Unicode/ascii table

    I don't mind what language (although Perl would be good). The properties file is in Japanese, so a Unicode/ascii table isn't really any good to me.


  • Registered Users Posts: 6,509 ✭✭✭daymobrew


    I don't mind what language (although Perl would be good). The properties file is in Japanese, so a Unicode/ascii table isn't really any good to me.
    What format/charset do you want the output information?

    Maybe the 'use utf8;' pragma will help you in perl. You could use the 'use bytes;' pragma in blocks where you don't want to use UTF8. Maybe you can output the strings at that point.


  • Closed Accounts Posts: 884 ✭✭✭NutJob


    Covers everything you are looking for

    http://www.gsp.com/cgi-bin/man.cgi?topic=perluniintro


Advertisement