QRCoder icon indicating copy to clipboard operation
QRCoder copied to clipboard

Swiss QRCode: New character set are available on 18.November 2022

Open RamonaFrickCH opened this issue 3 years ago • 1 comments

Type of issue

[ ] Bug
[ ] Question (e.g. about handling/usage)
[x] Request for new feature/improvement
Swiss QRCode: New charaterset is available on 18. November 2022

Expected Behavior

A customer reported that he cannot use his company name with degree characters in the QRCode information (Contact / Name) and gets the following error message: Contact: Name must match the following pattern as defined in pain.001: ^([a-zA-Z0-9.,;:'\ +-/()?*[]{}\`´~ )

Now I wrote with Sixpayment about the problem and answer to me, that on 18.November are new character set are allowed.

Here the message: _Guten Tag Frau Frick, Vielen Dank für Ihr e-Mail. Die restlichen Zeichen werden dann umgewandelt. Im folgenden [Dokument|Swiss Payment Standards 2022 (six-group.com)] sind auch die Zeichen aufgeführt. Der Zeichensatz wird ab dem 18. November, verglichen mit der vorherigen Version, erweitert werden.

Partner Support

SIX Banking Services_

Current Behavior

Possible Solution (optional)

customize/update in class Contact the variable charsetPattern QRCodeCharsetPatter

Steps to Reproduce (for bugs)

Insert in the adress the name with YXZ° Contact WithStructuredAddress(string name, string zipCode, string city, string country, string street = null, string houseNumber = null);

Your Environment

RamonaFrickCH avatar Nov 10 '22 10:11 RamonaFrickCH

Fix Issue in PayloadGenerator Line989

var charsetPattern = @"^([a-zA-Z0-9.,;:'\ +-/()?*[]{}\`´~ ^|]|[!""#%&<>÷=@_$£¡¢¤¥¦§¨©ª«¬®¯°±²³µ¶·¸¹º»¼½¾¿×Ø€]|[àáâäãåāăąçćĉċčďđèéêëēĕėęěĝğġģĥħìíîïĩīĭįıijķĸĺļľŀłñńņňʼnŋòóôöōŏőõŕŗřśŝşšșţťŧțùúûüũūŭůűųŵýÿŷźżžßÀÁÂÄÃÅĀĂĄÇĆĈĊČĎĐÈÉÊËĒĔĖĘĚĜĞĠĢĤĦÌÍÎÏĨĪĬĮİIJĴĵĶĹĻĽĿŁÑŃŅŇŊÒÓÔÖÕŌŎŐŔŖŘŚŜŞŠȘŢŤŦȚÙÚÛÜŨŪŬŮŰŲŴÝŶŸŹŻŽÆÐÞæðøþŒœſ])*$";

RamonaFrickCH avatar Nov 11 '22 10:11 RamonaFrickCH

Fixed with PR #432 . Bugfix will be part of QRCoder 1.5.0. Thanks for your support @RamonaFrickCH

codebude avatar Apr 20 '24 21:04 codebude