Convert a string's character encoding from windows-1252 to utf-8

前端 未结 4 770
囚心锁ツ
囚心锁ツ 2020-11-30 11:26

I had converted a Word Document(docx) to html, the converted html has windows-1252 as its character encoding. In .Net for this 1252 character encoding all the special charac

4条回答
  •  佛祖请我去吃肉
    2020-11-30 11:48

    How you are planning to use resulting html? The most appropriate way in my opinion to solve your problem would be add meta with encoding specification. Something like:

    
    

提交回复
热议问题