Is it possible to set two encodings for one hml?
Posted
by Horace Ho
on Stack Overflow
See other posts from Stack Overflow
or by Horace Ho
Published on 2010-06-08T02:59:26Z
Indexed on
2010/06/08
3:02 UTC
Read the original article
Hit count: 173
html
|character-encoding
Is there a way to specify certain part of a html file as another encoding?
The default encoding for the (generated) html is utf-8. However, some of the included data to be inserted in the html is in another encoding. It's something like:
<div>
the normal html in utf-8
</div>
<div>
<%= raw_data_in_another_encoding %>
</div>
Is there a way to hint a browser to render the 2nd <div>
in another encoding? thanks
© Stack Overflow or respective owner