Friday 20 April 2018

ASN.1: UTF8String: Create a string of Unicode characters

Type: UTF8String

Description: Use this to create string with uni code characters.

Example
name UTF8String

Example Schema
Person ::= SEQUENCE {
    name UTF8String,
    id VisibleString,
    email IA5String,
    salary NumericString
}

Sample data for above schema
person Person ::= {
    name "Rama Krishna",
    id "I123456",
    email "krishna@krishna.com",
    salary "543215.6"
}

XML encoding of above data
<?xml version="1.0" encoding="UTF-8"?>
<Person>
  <name>Rama Krishna</name>
  <id>I123456</id>
  <email>krishna@krishna.com</email>
  <salary>543215</salary>
</Person>




Previous                                                 Next                                                 Home

No comments:

Post a Comment