Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Encode PRM files in UCS-2 Little Endian

by Akku (Novice)
on Jul 23, 2013 at 04:29 UTC ( #1045771=perlquestion: print w/ replies, xml ) Need Help??
Akku has asked for the wisdom of the Perl Monks concerning the following question:

I have mentioned the code below, it is encoded in UCS-2 Little endian. First I am reading prm file containing this code and genrates the file with little bit addition of data. On generation of new file other language word is lost

I/p file data

Var: Common, TextID: gas_lhs_tid_272, "牵引力控制" */

Var: Common, TextID: gas_lhs_tid_273, "已设置为" */

Var: Common, TextID: gas_lhs_tid_272, "АПС" */

Required O/p

Var: Common, TextID: gas_lhs_tid_272, "牵引力控制" */

Var: Common, TextID: gas_lhs_tid_273, "已设置为" */

Var: Common, TextID: gas_lhs_tid_272, "АПС" */

Added data line 1

Added data line 2

I am getting

Var: Common, TextID: gas_lhs_tid_272, "" */

Var: Common, TextID: gas_lhs_tid_273, "" */

Var: Common, TextID: gas_lhs_tid_272, "" */

Added data line 1

Added data line 2

I tried to add some japanese word, but on update it has turned into some garbage value. Please use some japanese word in place of garbage value

Comment on Encode PRM files in UCS-2 Little Endian
Re: Encode PRM files in UCS-2 Little Endian
by moritz (Cardinal) on Jul 23, 2013 at 05:43 UTC
Re: Encode PRM files in UCS-2 Little Endian
by mtmcc (Hermit) on Jul 23, 2013 at 06:52 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1045771]
Approved by NetWallah
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2014-08-29 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls