yeqown / go-qrcode

To help gophers generate QR Codes with customized styles, such as color, block size, block shape, and icon.
MIT License
488 stars 80 forks source link

Implementing EncModeJP #106

Open fdelbos opened 1 month ago

fdelbos commented 1 month ago

Is your feature request related to a problem? Please describe. Some low end smartphones (especially chineses brands) do not recognize URL links automatically when they are UTF8 encoded. So the user has to copy paste the URL from the scanner to the browser to open the page and it degrads the user experience...

Describe the solution you'd like From my testing kanji encoded URLs are recognized on theses phones (at least some of them) and allows the user to open the navigator right away from the camera app.

Describe alternatives you've considered

Additional context It works with the qrencode cli (ex: qrencode -o qrcode.kanji.png --kanji MyURL)

yeqown commented 1 month ago

Do you know what's the difference in encoded results between this repository and the qrencode cli? Provide the encoded result would be helpful.

fdelbos commented 1 month ago

Bellow is https://google.com generated with qrencode with --kanji param. qrcode kanji

From the man page:

       -k, --kanji
              assume that the input text contains kanji (shift-jis).