Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi friends i have html editor but it is not suppoting to all the code
now i want utf-8 editor or html editor supported uft-8
so pls help me to find the solution.
Posted
Comments
AmitGajjar 20-Sep-12 0:33am    
can you let us know which editor you are using ? do you mean by html editor /html is not supporting utf-8?
Sergey Alexandrovich Kryukov 20-Sep-12 0:35am    
I think such editor is just impossible :-)
Please see my answer and the comment below.
--SA
Sergey Alexandrovich Kryukov 20-Sep-12 0:35am    
Can you explain how it's possible to have the Web application based editor NOT supporting Unicode? Or your tag "ASP.NET" and "C#" are both added by mistake? :-)
--SA
AmitGajjar 20-Sep-12 0:48am    
Please Improve your question and be specific.

It looks like you are missing something. All modern Web browser support Unicode, so the editor you need could be just the <textarea> element. Moreover, as it supports Unicode, it also supports all other UTFs. For example, if you have some application supporting just UTF-32 (imagine such thing for a minute), and some arbitrary Unicode text on the Web page shown by the a Web browser, which can be some text in control or anywhere else, you can copy this text from the browser to a clipboard and later past in that application — UTF-8 to UTF-32 "conversion" is done! This is just a usual property of the clipboard. The same happens in nearly all modern systems.

[EDIT]

And of course .NET supports the Unicode and all major UTFs.

[END EDIT]

Maybe you just need to learn how Unicode works. Please see, to start with:
http://en.wikipedia.org/wiki/Unicode[^],
http://unicode.org/[^],
http://en.wikipedia.org/wiki/BOM[^],
http://unicode.org/faq/utf_bom.html[^].

—SA
 
Share this answer
 
v2
Comments
AmitGajjar 20-Sep-12 0:43am    
Yes exactly OP is not clear about his query.
AmitGajjar 20-Sep-12 0:47am    
5+ also see my answer.
Sergey Alexandrovich Kryukov 20-Sep-12 0:53am    
Thank you, Amit.
--SA
Espen Harlinn 20-Sep-12 4:20am    
5'ed!
Sergey Alexandrovich Kryukov 20-Sep-12 11:26am    
Thank you, Espen.
--SA
Hi,

If you are creating HTML file from your editor and you are asking how to create that HTML file UTF-8 compatible then you can do it like specify it in meta tag.
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">

And If you have question like your editor is not supporting the UTF-8 then see the solution1 by SA. it's not possible because all browsers support it.

Thanks.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Sep-12 0:57am    
Right, good point. My 5.

I would also mention that this http-equiv is important to have even if the HTTP browser supports default charset set to the same value ("UTF-8" or whatever is required). This way, the content type you mentioned will be prescribed in the HTTP headers, not in HTML. The page will be rendered in browsers correctly, but is is good? What should do the people who copied some page to the local file? The charset information will be lost! That's why I thing the http-equiv you've shown is the must.

--SA
AmitGajjar 20-Sep-12 1:03am    
Thanks for your vote and comment SA. :)
Espen Harlinn 20-Sep-12 4:20am    
5'ed!
AmitGajjar 20-Sep-12 4:21am    
Thanks Espen Harlinn :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900