From: dare ruby Date: 2008-06-02T14:29:26+09:00 Subject: Re: how to generate ascii code? Heesob Park wrote: > Hi, > > 2008/5/30 dare ruby : >> the process >> from buffer and adding each character to temp string. >> >> so please help me to solve this issue.. >> >> Thanks in advance... >> > > irb(main):001:0> require 'cgi' > => true > irb(main):002:0> CGI.unescapeHTML("WELCOME") > => "WELCOME" > irb(main):003:0> CGI.unescapeHTML("WEÿCOME") > => "WE\377COME" > > > Regards, > > Park Heesob Dear Park Heesob, thanks for your comments on my question. its working fine now but could you specify what would be the range of decimal and hexa decimal reference in your case. A link would be very helpful to me. even though its working well iam not getting proper result after 255 in decimal like , Ā its returning nul. so could you specify the range for the character reference for decimal and hexadecimal in your case. Thanks in advance.. Regards, Jose -- Posted via http://www.ruby-forum.com/.