Community
    • Login

    Ending changing to Chinese GB2312

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Alan SeidA
      Alan Seid
      last edited by

      Hi,

      I have one HTML file that the Ending changed from UTF-8 to “Chinese GB2312”. The file has some Chinese characters in it. Firefox displays the HTML and the HTML functions correctly.

      The first time this happened I copied the HTML to a new Notepad++ file and replaced all the Chinese.

      It happened again. I selected all the text in the file and then click on “Encoding” then “Convert to UTF-8”. That changed the Encoding from Chinese to UTF-8. But I still have Chinese characters in the file.

      How can I stop the encoding from changing? Is there a process to change the Chinese characters back to English?

      Thanks

      Alan SeidA madara sanM 2 Replies Last reply Reply Quote 0
      • Alan SeidA
        Alan Seid @Alan Seid
        last edited by

        For example it changes the German word from Für to F眉r

        Alan SeidA 1 Reply Last reply Reply Quote 0
        • Alan SeidA
          Alan Seid @Alan Seid
          last edited by

          Another example 1943–1944 was changed to 1943鈥?944

          1 Reply Last reply Reply Quote 0
          • madara sanM
            madara san @Alan Seid
            last edited by

            @Alan-Seid said in Ending changing to Chinese GB2312:

            Hi,
            I have one HTML file that the Ending changed from UTF-8 to “Chinese GB2312”. The file has some Chinese characters in it. Firefox displays the HTML and the HTML functions correctly.
            The first time this happened I copied the HTML to a new Notepad++ file and replaced all the Chinese.
            It happened again. I selected all the text in the file and then click on “Encoding” then “Convert to UTF-8”. That changed the Encoding from Chinese to UTF-8. But I still have Chinese characters in the file.
            How can I stop the encoding from changing? Is there a process to change the Chinese characters back to English?

            It sounds like your HTML file is getting saved with the wrong encoding, which is causing some of the characters to appear as Chinese instead of English. Here are some steps you can take to fix the issue:

            Open the HTML file in Notepad++.
            Go to the “Encoding” menu and select “Convert to UTF-8”. This will convert the file to UTF-8 encoding and should preserve all of the characters in the file, including any Chinese characters that were originally there.
            If there are still Chinese characters in the file that you want to replace with English, you can use a search and replace function in Notepad++ to do this. Go to the “Search” menu and select “Replace”. In the “Find what” field, enter the Chinese character that you want to replace. In the “Replace with” field, enter the corresponding English character. Click “Replace All” to replace all instances of that character in the file.
            Save the file with the UTF-8 encoding. Go to the “File” menu and select “Save As”. In the “Encoding” dropdown, select “UTF-8” and save the file with a new name.
            By following these steps, you should be able to convert your HTML file to UTF-8 encoding and replace any Chinese characters with English characters. This should prevent the encoding from changing in the future and ensure that your file displays correctly in all browsers.

            PeterJonesP 1 Reply Last reply Reply Quote -3
            • PeterJonesP
              PeterJones @madara san
              last edited by

              @madara-san ,

              Please stop using generative AI to write your posts for you. It’s not helping anyone.

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors