# Unicode characters in ruby

**URL:** <https://www.ruby-forum.com/t/unicode-characters-in-ruby/140776>\
**Category:** Ruby\
**Created:** [June 18, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/unicode-characters-in-ruby/140776 "2008-06-18T13:17:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [June 18, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/unicode-characters-in-ruby/140776/1 "2008-06-18T13:17:00Z")

</div>

Dear all,

Iam in process of parsing xml. I has stored the xml in a stringio buffer  
and reading the xml character by character. I need to know how to deal  
with unicode characters here.

1. If unicode characters were present in xml how can i read the all  
65636 unicode characters.

2. I have parsed xml declaration part and found the encoding

please suggest me a way to proceed.

thanks in advance.

Regards,  
Jose
