Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

char data type in unicode system

Former Member
0 Likes
410

Hi,

I have a reall serious problem with nw & unicode system 😕

If I declare:

Data dt type char10.

and make:

dt = '1'

I debuger I can see that it's stored as: 3100 in hex <- described in 2 byted due to unicode issue.

its a big problem becuse data in this format are sending over RFC to fiscal printer wich is generating error (printer is not support unicode format) so question is.... how to store character data type in a single character mode in inernal variables ???

pls help

2 REPLIES 2
Read only

Former Member
0 Likes
379

Hi,

do you really need to declare your variable as 10 characters long ??

if you´re really sending 1 charachter values, how about if you declare it as

data dt type c.

Read only

0 Likes
379

its exactly the same, default len of C type is 1 character (2 physical bytes in unicode)