On Sat, Mar 05, 2005, Zerg wrote:

>   Please, help..
>   For example I want to generate ASN1 type of UTF8String  by this call
>   ASN1_generate_v3(p, ctx)
>   I pass to this subrouting such string "UTF8:йцукенг". But no correct 
> effect..
>   I 'tried to pass for the value the correct UTF8 data,previously had 
> converted it from CP1251 to UTF8...
>   But this call in some way is mangling my UTF8String, adding c3....
>   Where I am wrong?

You need to tell it that the character format is UTF8 by using the FROMAT:UTF8
modifier. Its assuming that the input is ASCII without that and converting it
to UTF8.


If you just want to set a UTF8String then ASN1_STRING_set() is a much easier
way to do it.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to