Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 07 JAN 2013 12:12:24PM paxton scott wrote:

Greetings!

Many things work just fine. I have a problem with ú.

Operating in UTF8 mode on OI 9.1.1

This works:

Using the [ ], I extract an ANSI string: Ciarán Brennan

in the debugger, it looks like this:

0000: 00 43 69 61-72 E1 6E 20 .Cia-r.n

0008: 42 72 65 6E-6E 61 6E Bren-nan

Then I use ANSI_UTF8(string, char(255)

and get this:

0000: 00 43 69 61-72 C3 A1 6E .Cia-r..n

0008: 20 42 72 65-6E 6E 61 6E Bre-nnan

0010:

all is well:

Then, another string gives me problems:

the string is: Dúlamán

but the debugger shows it as: D■lamán

and it looks like this:

0000: 00 44 FA 6C-61 6D E1 6E .D.l-am.n

0008:

Then I use ANSI_UTF8(string, char(255)

and get this:

0000: 00 44 FA 6C-61 6D C3 A1 .D.l-am..

0008: 6E n

Can someone give me some guidance on how to handle this character?

Sure appreciate all the help so far.

Have fun,

Paxton


At 08 JAN 2013 10:58AM Carl Pates wrote:

Hi Paxton,

Try this:

 ustr = ANSI_UTF8( astr, 0 )

(As you're using char(255) (as per the help) I assume you're treating all ANSI chars that collide with system delimiters as actual printable characters and not system delimiters?)

Carl Pates

Sprezzatura

The Sprezzatura Blog

World leaders in all things RevSoft


At 08 JAN 2013 12:28PM paxton scott wrote:

Hi, Carl

Bingo! That works, and yes, I was following the help to convert ALL ANSI characters in the string to utf8.

I guess this means the help is not correct? Or, I just am misreading it?

In earlier interations of this issue I was even doing things like attempting to detect and swap system delimiters.

Thank you.

Have fun,

Paxton

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/851b2a16ee78fb4b444c59577.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1