[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: UniversalString throws exception



Joe,

I have installed the patch and tried again.
I am getting the same error (Only the error code is changed from 665 to
688). 

I have given below the piece of code I tried:
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

Thanks,
Siva

-----Original Message-----
From: Grone, Joseph
To: Sivakumar S - CTD, Chennai.; imc-snacc@xxxxxxx
Cc: kalirajk@xxxxxxxxxxx
Sent: 13/09/2005 20:21
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