Community
    • Login

    How to solve the Encoding Issue when reading a file in Notepad ++?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    16 Posts 4 Posters 2.7k 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.
    • Ivan BondarenkoI
      Ivan Bondarenko
      last edited by

      Hello Guys!

      I am trying to open an XML file from a game. I want to get the data from it. But for some reason, the encoding is broken and I can’t read it. Here is what I see:

      encoding.png

      I am trying to open it on Windows 10 with Notepad ++ 7.8.8

      I don’t know what to do. Can you help me?

      PeterJonesP Anatoliy SergeevA 2 Replies Last reply Reply Quote 0
      • andrecool-68A
        andrecool-68
        last edited by

        Try to rediscover line ends and file encoding

        2.png

        1.png

        Ivan BondarenkoI 1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @Ivan Bondarenko
          last edited by

          @Ivan-Bondarenko ,

          Honestly, I would say that the filename is lying to you. That’s not how the file would look using the wrong encoding. (Based on the fact that there are some obvious plaintext snippets, like objects/crafting/props/...). My guess is that it’s not actually a text-based XML file, and is really some proprietary binary encoding – as to why they called it “xml”, I don’t know. (Either that, or they’ve taken an XML file and done some proprietary encryption or compression, without changing the filename, to prevent users from hacking their game. But a full/normal encryption or even compression wouldn’t leave chunks of legible text, which is why I’m guessing proprietary binary format.)

          I’d recommend going to a forum for your game, and asking whether it’s possible to convert the assetcatalog.xml into an actual XML file. (or, if they say, “it’s a plaintext file, encoding with XXX encoding”, we can help you convince Notepad++ to read that encoding, once we know what it is)

          Good luck.

          Ivan BondarenkoI 1 Reply Last reply Reply Quote 3
          • Ivan BondarenkoI
            Ivan Bondarenko @PeterJones
            last edited by Ivan Bondarenko

            @PeterJones said in How to solve the Encoding Issue when reading a file in Notepad ++?:

            I’d recommend going to a forum for your game, and asking whether it’s possible to convert the assetcatalog.xml into an actual XML file. (or, if they say, “it’s a plaintext file, encoding with XXX encoding”, we can help you convince Notepad++ to read that encoding, once we know what it is)

            Thank you! This answer helped me a lot! I will try to find everything out.

            1 Reply Last reply Reply Quote 0
            • Ivan BondarenkoI
              Ivan Bondarenko @andrecool-68
              last edited by

              @andrecool-68 Thank you for trying to help. But this doesn’t work.

              andrecool-68A 2 Replies Last reply Reply Quote 0
              • andrecool-68A
                andrecool-68 @Ivan Bondarenko
                last edited by

                @Ivan-Bondarenko Using the “Exeinfo Pe” utility, you can analyze what your file is packed with, because it really doesn’t look like a regular “XML”

                1 Reply Last reply Reply Quote 0
                • andrecool-68A
                  andrecool-68 @Ivan Bondarenko
                  last edited by

                  @Ivan-Bondarenko Here is an example of the “Exeinfo Pe” utility
                  I renamed file-TXT to file-XML, but the utility shows the real face of the file … that it is a fake file-TXT

                  Безымянный.png

                  Ivan BondarenkoI 1 Reply Last reply Reply Quote 0
                  • Ivan BondarenkoI
                    Ivan Bondarenko @andrecool-68
                    last edited by

                    This post is deleted!
                    andrecool-68A 1 Reply Last reply Reply Quote 0
                    • andrecool-68A
                      andrecool-68 @Ivan Bondarenko
                      last edited by

                      @Ivan-Bondarenko Для чего вы хотите его открыть, какой смысл этих действий?

                      Ivan BondarenkoI 1 Reply Last reply Reply Quote 0
                      • Ivan BondarenkoI
                        Ivan Bondarenko @andrecool-68
                        last edited by

                        This post is deleted!
                        andrecool-68A 1 Reply Last reply Reply Quote 0
                        • andrecool-68A
                          andrecool-68 @Ivan Bondarenko
                          last edited by andrecool-68

                          @Ivan-Bondarenko Это все детские глупости, и не стоит тратить время на бестолковые затеи!

                          Ivan BondarenkoI 1 Reply Last reply Reply Quote 0
                          • Ivan BondarenkoI
                            Ivan Bondarenko @andrecool-68
                            last edited by

                            This post is deleted!
                            andrecool-68A 1 Reply Last reply Reply Quote 0
                            • andrecool-68A
                              andrecool-68 @Ivan Bondarenko
                              last edited by

                              @Ivan-Bondarenko Этот форум повещен только программе Notepad++, а не взлому сайтов, программ или игр!
                              Юноша …ты вообще ошибся адресом!

                              Ivan BondarenkoI 1 Reply Last reply Reply Quote 1
                              • Ivan BondarenkoI
                                Ivan Bondarenko @andrecool-68
                                last edited by

                                @andrecool-68 Я прекрасно знаю, для чего этот веб сайт. И адресом я не ошибся. Последний мой вопрос был конкретно к тебе. Нет, так нет. В любом случае, спасибо.

                                1 Reply Last reply Reply Quote 0
                                • Anatoliy SergeevA
                                  Anatoliy Sergeev @Ivan Bondarenko
                                  last edited by

                                  @Ivan-Bondarenko Привет. Последние несколько дней тоже занимаюсь декодированием этого файла. Тут явно что-то не так с кодировкой. Файл не зашифрован. Если будут подвижки, расскажи здесь как решил проблему. Если у меня получится, я тоже отпишусь.

                                  PeterJonesP 1 Reply Last reply Reply Quote 0
                                  • PeterJonesP
                                    PeterJones @Anatoliy Sergeev
                                    last edited by PeterJones

                                    @Anatoliy-Sergeev and @Ivan-Bondarenko ,

                                    As @andrecool-68 pointed out, your question has nothing to do with Notepad++. You are trying to hack a binary file from a game. Notepad++ is a text editor. Notepad++ cannot be expected to be able to read every proprietary binary file. No text editor, whether it’s Notepad++ or any other text editor, should be expected to read a proprietary binary file. Notepad++ cannot interpret this binary file as text, even if you or the game designer lies and calls it an XML file. It does not matter whether it’s because the file is encoded or encrypted or compressed or just a proprietary binary format: it is not a text file, and Notepad++ cannot help you read it as text.

                                    Please stop this discussion of game hacking here. It is off topic for this forum.

                                    -----

                                    @Анатолий-Сергеев и @Иван-Бондаренко ,

                                    Как отметил @andrecool-68, ваш вопрос не имеет ничего общего с Блокнотом++. Вы пытаетесь взломать бинарный файл из игры. Блокнот++ - это текстовый редактор. Нельзя ожидать, что Блокнот++ сможет прочитать каждый проприетарный двоичный файл. Ни от какого текстового редактора, будь то Блокнот++ или любой другой текстовый редактор, нельзя ожидать, что он сможет прочитать проприетарный двоичный файл. Блокнот не может интерпретировать этот двоичный файл как текст, даже если вы или дизайнер игры лжёте и называет его XML-файлом. Не имеет значения, потому ли это, что файл закодирован или зашифрован, или сжат, или просто несвободный двоичный формат: это не текстовый файл, и Блокнот++ не может помочь вам прочитать его как текст.

                                    Пожалуйста, прекратите обсуждение взлома игры здесь. Оно находится вне темы этого форума.

                                    Переведено с помощью www.DeepL.com/Translator (бесплатная версия)

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