veerle
15th March 2007, 14:02
I have a problem with chinese characters. Is it possible to store 4 bytes characters in 2 bytes characters within a baan script?

Problem situation: In text manager, chinese chars are stored in 4bytes. The user and bw configuration are Simplified chinese (=two bytes). I put the chinese text in a file (using seq.open, seq.puts..). When I open the file in Excel, before each chinese character there is a '?'. I mean that the question mark is caused by the first 2 bytes..


Regards, Veerle

NPRao
15th March 2007, 23:02
Did you try to use - mb.cast.to.str$() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_multibyte_strings_mb_cast_to_str)

liao99
16th March 2007, 04:41
.................................