[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: UniversalString throws exception
Joe
I have installed the patch as u told ("esnacc_1_7_3patch"). I also recreated
the cppasn1_d.dll for my VC environment using the updated files. Then also
the same problem of exception occurs. I give u here the code i executed and
the output. Kindly help
int main()
{
UniversalString ustr;
char ich[32]="Lé Royal Meridian";
unsigned char och[32];
try
{
ustr.set((const char *)&ich[0]);
strcpy((char *)&och[0],ustr.getAsUTF8());
}
catch(SnaccException &se)
{
se.getCallStack(std::cout);
cout << "Exception thrown Snacc " <<se.what()<< endl;
}
catch(exception &e)
{
cout << "Exception thrown : " <<e.what()<< endl;
}
return 0;
}
Output:
asn-stringtype.cpp 688 WideAsnString::set()
Exception Thrown Snacc Invalid UTF-8 string
Regds
Kaliraj K
-----Original Message-----
From: Grone, Joseph [mailto:joseph.grone@xxxxxxxxxxxxxx]
Sent: Tuesday, September 13, 2005 8:21 PM
To: Sivakumar S - CTD, Chennai.; imc-snacc@xxxxxxx
Cc: kalirajk@xxxxxxxxxxx
Subject: RE: UniversalString throws exception
Before I troubleshoot this problem, I want to make sure that you have the
July 7, 2005 patch installed for eSNACC found here:
http://www.digitalnet.com/knowledge/download.htm
--Joe
-----Original Message-----
From: owner-imc-snacc@xxxxxxxxxxxx [mailto:owner-imc-snacc@xxxxxxxxxxxx] On
Behalf Of Sivakumar S - CTD, Chennai.
Sent: Tuesday, September 13, 2005 10:28 AM
To: imc-snacc@xxxxxxx
Subject: UniversalString throws exception
Importance: High
Hello,
I face a problem with eSNACC (I am using version 1.7).
The ASN throws some exception when I use French characters.
For example, there is one ASN data type called UniversalString.
When I try to store a value "ü" inside the UniversalString it throws an
exception saying "UTF8string invalid".
The storing procedure is the same. It works fine for all English characters
but when try to use it for French characters like ü or ä like this it doesnt
work.
Is there a possibility at the code generation time itself (while generating
VNP_message set.cpp and .h from ASN.1) to make it support these characters.
Kindly help
Thanks,
Siva
DISCLAIMER
This message and any attachment(s) contained here are information that is
confidential, proprietary to HCL Technologies
and its customers. Contents may be privileged or otherwise protected by law.
The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to
read, forward, print, retain, copy or disseminate this message or any part
of it. If you have received this e-mail in error,
please notify the sender immediately by return e-mail and delete it from
your computer