Git Product home page Git Product logo

Comments (2)

sp193 avatar sp193 commented on August 16, 2024 1

If you asked this question, other people may ask why not another encoding. This problem is related to the encoding used on the filesystem for filenames, the encoding used by the OS functions, as well as the character set used (e.g. unicode, or any of the many things like ASCII, GB2312, Shift-JIS). Since most software is written in C, a lot of library functions work with ASCII. Perhaps it is better to use UTF-8 instead, as UTF-8 is backward-compatible with ASCII functions.

If you're thinking about the encoding used for filenames on USB disks: the filename encoding can be specific to the OEM. So it means it can be anything at all. If you go back to the 2000s, each regional release of Windows would use a different encoding, such as GB2312 for Chinese, Shift-JIS for Japanese, ASCII for English-US etc. Windows 7/10 use UTF-16 for the Long File Name (LFN) entries on FAT. In USBHDFSD (the USB filesystem driver), it would appear that the unsupported code points are replaced with "?" characters.

The other halve to this problem, is about support for character sets for display by the application itself; not all glyphs may be supported for display.

from ps2sdk.

uyjulian avatar uyjulian commented on August 16, 2024

GB2312 can be used when you provide your own libraries for handling it.

Reopen if this is still an issue

from ps2sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.