Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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

Replies are listed 'Best First'.
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 drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-09-25 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (463 votes). Check out past polls.