About unknown charaters shows


I read some html source and remove all tags and just take the contents.

So when i see that contents in ruby output it shows me unknown charaters

“-á” and it shows inplace hello so it shows like

“hello-á” and reason is space before tag.

so if any one have idea using regex or any thing for remove this space
from tag

or this charater then please give me some ideas.


Original Html:

<strong>Hello </strong>

After remove Html tags in ruby :


Priyank S.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs