huozhenguo
3rd August 2005, 08:58
We're using Baan IV and now we meet a problem about Baan Text Editor:
We're using notepad for Text maintenance in Baan, and the Chinese character in the text can not be printed out/displayed with report or inquiry sessions. Can anybody find solution for us? Thanks in advance.
By the way, we preferred to use Notepad to maintain text because it's more convenient than Baan standard text editor.

baanbomb
3rd August 2005, 09:28
maybe you can use this function :mb.import$( )
in baan ,one Chinese character occupy 4 byte,and windows 2 byte.

Syntax
long mb.import$( ref string target$, string source$ [, long setid ] )

Description
This converts a string from the external, native character set to the TSS character set. By default, the setting of the current locale determines the native character set from which the string is converted. Code features are restored.

Arguments
target$
The converted string. This can be a maximum of 4096 bytes.

source$
The source string that must be converted.

setid
If you do not want to base the conversion on the setting of the current locale, use this optional argument to specify the ID of the TSS character set to be used in the import operation.


Return values
> 0 the number of converted bytes
-1 the target string was too small to contain the converted string
-2 an incomplete character was found at the end of the string
-3 character could not be converted.

huozhenguo
9th August 2005, 08:09
Thank you for your kindly reply.
But I'd like to confirm how to use the function.
Now all text information exist in ttttxt010, do you mean that I should
download the table into a text file first, then use mb.import$to convert the
characters into TSS character set, then upload the text file into Baan
table again?
Or I just create a new Baan session to convert the characters in table
directly?
Thank you!

baanbomb
9th August 2005, 12:01
print out/display

FYI:

declaration:
#include <bic_text>
extern domain tcmcs.str132m text.buf(8)
domain tcmcs.str132m text.buf1(50)
domain tcmcs.str132m text.buf2(50)
long num, i, j

set.mem(text.buf, "")
set.mem(text.buf1, "")
set.mem(text.buf2, "")
num = text.to.buf("tiitm001.txtp",language$,50,text.buf2)
for i = 1 to num
e = mb.import$( text.buf1(1,i), text.buf2(1,i))
endfor
j = 8 | print the lastest 8 line
for i = num to 1 step -1
if not isspace(text.buf1(1,i)) then
text.buf(1,j) = text.buf1(1,i)
j = j - 1
if j = 0 then
i = 1
endif
endif
endfor
if j > 1 then
for i = 1 to 8
if not isspace(text.buf(1,i)) then
text.buf(1,i - j) = text.buf(1,i)
text.buf(1,i) = ""
endif
endfor
endif

baanpro
11th February 2009, 00:50
Hi,
We have Baan IVC environmnet implemented across the globe and everywhere we use English as standard language. Now we have requirement to implement baan in China. Still the language is gonna be english, but we need some reports to print the Chinese characters. We could not figure out how do we store the Chinese characters in Baan (eg: text tables)?. I was trying with the above mentioned code by baanbomb, but still unsuccessful.

In order for Chinese characters to print, do we require certain multi-byte installation?. Is there any other work around .. ?

regards
baanpro

steventay
4th May 2009, 06:59
i believe you need a multi byte installation and also during database chinese too.

Anyone know for Baan installation, what is the different b/w the below multibyte.

GB2312
GB2312_WIN32
GBEXT_DEC_OSF

baan1458
6th May 2009, 12:26
GB2312
GB2312_WIN32
GBEXT_DEC_OSF

They are the locale for different types of OS.
If you need display and store Chinese, a double byte installation on both BaaN IV and DB is required.

vishbaan
17th January 2010, 10:04
Greetings Folks,

On the contrary, I wanted to print the numbers in arabic numberals from Baan.

It prints fine if use the windows printer and user fonts to arabic. Meaning, I have the normal numbers which are stored in baan like price details 3456.75 etc.. This numerals to get printed in arabic, in print -> preview I select the user font to arabic, the numbers get displayed in arabic numerals. (Windows regional settings -> customize -> Number format select arabic, Digit Substitution : Context.

However I have a problem, this numbers I need to print in arabic numerals using a Zebra barcode printer. For which, we are generating a notepad text file and sending to printers with the ZPL Escape codes. As I generate the text file from Baan, the numbers appear in roman numerals only and not in arabic numerals.

Any ideas friends, how to handly printing of numbers in arabic numerals from Baan.
Will be very grateful to you..

Thanks

Vishi

shah_bs
18th January 2010, 03:20
I have never done this myself, but I hope the following from the zebra's mouth (so to speak) will be of some use (at the very least, point you to the next steps - I am sure somebody will need to spend some money somewhere down the line, unless the hardware you have already has the necessary support (in terms of its firmware) for the Unicode characters they mention in the link):

http://www.zebra.com/id/zebra/na/en/documentlibrary/whitepapers/international_label_printing.DownloadFile.File.tmp/WP14016_GlobalPrinting_new.pdf?dvar1=White%20Paper&dvar2=Solving%20International%20Label%20Printing%20Challenges%20with%20Unicode

Of course, if you have to store the Chinese or Arabic characters in a text field of BAAN, I am not sure if the TSS Character set supports that - you could raise a question with BAAN Support.

fsabbagh
13th October 2010, 23:39
Yes it does support the chinese character set (simplified or traditional) as long as you install the Baan Chinese update CD.