Options

Converting Unicode to ASCII through C/SIDE

nelsonnelson Member Posts: 107
edited 2003-09-18 in Navision Financials
Hi everyone,

Maybe this is a non-sense question...

I am reading some data from an external Data Source which uses Unicode. Obviously, when this data gets written into the Navision database, the text is wrong.

Is there anyway to convert the Unicode text into ASCII text?
Using a custom C/SIDE function or an external component?


Thanks a lot,
Nelson Alberto

Comments

  • Options
    eromeineromein Member Posts: 589
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Options
    nelsonnelson Member Posts: 107
    Hi eromein,

    I already tried this codeunit before posting the topic.
    It doesn't work to convert Unicode->ASCII

    Maybe it will become useful if there is some way to convert Unicode to ANSI and then use it to convert it to ASCII...

    Can you - or anyone else - think of something else?
    Nelson Alberto
  • Options
    eromeineromein Member Posts: 589
    Ok, but just take a look at this codeunit. Try to create a codeunit that does the same for unicode.

    Place it in the download section if you have it so everybody can enjoy your solution.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Options
    nelsonnelson Member Posts: 107
    Hey eromein,

    I solved the problem by trying with a different ODBC driver.
    It gave me the option to use ASCII, so now Navision understands it OK

    Thanks anyway,
    Nelson Alberto
  • Options
    eromeineromein Member Posts: 589
    nice one.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
Sign In or Register to comment.