Re: X509_NAME_get_text_by_NID fails with accent?

2005-12-22 Thread Massimo Rando
Jostein Tveit wrote: Massimo Rando [EMAIL PROTECTED] writes: The function returns: i = 6 buf (hex) = 4d 61 72 69 c3 b2 but the buffer 'buf' should contain the given name 'Mariò' (hex: 4d 61 72 69 f2) while I find the string Mariò (hex: 4d 61 72 69 c3 b2). ò in UTF-8 is 0xc3 0xb2. ò

Re: X509_NAME_get_text_by_NID fails with accent?

2005-12-20 Thread Jostein Tveit
Massimo Rando [EMAIL PROTECTED] writes: The function returns: i = 6 buf (hex) = 4d 61 72 69 c3 b2 but the buffer 'buf' should contain the given name 'Mariò' (hex: 4d 61 72 69 f2) while I find the string Mariò (hex: 4d 61 72 69 c3 b2). ò in UTF-8 is 0xc3 0xb2. ò in ISO-8859-1 is 0xf2. I