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