Hi Victor,

So, if i understood you, i must convert my input string (ISO-8859-1 to 
UTF-8) before passing it to the function X509_Name_add_entry_by_NID.
I thought that it was the function which converted my input string to 
UTF-8....

Ok, I'll test it.... Do you know a function (in C language) which doing this 
conversion ?

Vincent

----- Original Message ----- 
From: "Victor Duchovni" <[EMAIL PROTECTED]>
To: <openssl-users@openssl.org>
Sent: Monday, September 26, 2005 2:24 PM
Subject: Re: problem with UTF8 encoding


> On Mon, Sep 26, 2005 at 02:07:40PM +0200, Vincent WYON wrote:
>
>> Hi all,
>>
>> I want to create some certificates which CN has special french characters 
>> (like ?, ? or ?...). When I called the function 
>> X509_Name_add_entry_by_NID with this special string (like "Fr?d V?l?"), 
>> it returns an error.
>> After debugging the application, i found that it's the function UTF8_getc 
>> whose returns the error....
>>
>
> Your input string is likely ISO-8859-1, provide input that *is* UTF8
> encoded, in UTF8, non-ASCII characters take at least two bytes to encode:
>
> http://www.ietf.org/rfc/rfc3629.txt
>
> -- 
> Viktor.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
> 


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to