I am using Zxing services QR Codes EncodeContact.
I am trying to pass some parameters onto the structure of contact. The field - "Fullname" always get truncated in my output result.
I tried hardcode it (Swee Hwee LIM) and failed to display full text. In my QRCode image, it returns "Swe Hwee LIM". The letter e is missing.
Any one facing this issue? Thanks for advise in advance.
It works on Android phone. But when i use Apple (iOS) camera to scan, it always get truncated.
Hi siew wah low,
I found a bug in the VCARD encoding, I'll provide a fix as soon as possible. If you select MECARD format and if you can use that format, it should work.
Any estimation timeline for this fix version?
Yes, I'm hoping to be able to upload a new version still this week. I already have a fix but haven't tested it properly, I also found other bugs in the VCARD creation and wanted to test everything properly before uploading that new version. If you go to the component's demo page you can test the fix and provide feedback ;)
Anyways, I forgot to mention something which could unblock you more quickly...
The EncodeContact is just an accelerator to create a QR Code for a MECARD or a VCARD. IF you know how to create the VCARD specification you can simply use the EncodeBarcode action to generate the barcode.
I tried the EncodeBarcode action and it works with vcard properties defined. But I want to use Aggregate as my data.
But for Chinese characters, it turns out junk characters on my output of contact through i have specified UTF8 in the EncodingId.
Any advise? Thanks so much.
I tried test the DemoContact - same issue on Apple phone.
Vcard - Fullname get truncated (Summer Lim become Summe Lim)
Thanks Andre, will wait for the fix version!
There are limited fields for MECard format. I would want to use VCARD. Thanks.
I just posted an update to the component, which I believe fixes the issues with the full name being truncated. This new version actually introduces additional fields for the VCARD encoding, namely the breakdown of the name in its different parts.
Regarding your question about the encoding of characters, this is how far I got with it. According to VCARD specification, version 4.0 should always use UTF-8 for encoding. I tried it and it didn't work. The scan of the QR code always had the wrong characters instead of the Portuguese accented characters for example.
I also came across an article that said that most software that supports reading VCARDs actually work better with version 3.0 and assuming the encoding is ISO-8859-1 so I decided to use these for the EncodeContact action. It works for Latin languages such as Portuguese, not sure it will work for Chinese characters... give it a try and give feedback please!
Regards
🤦♂️
After posting here I decided to give it a try with some Japanese characters... And turns out that you need to use Shift_JIS encoding for that one.
So I'll be posting yet another version :) with a new optional parameter for the EncodeContact action to provide the correct encoding...
The update version fixed the truncated fullname issue. I tried the UTF8 and it can display chinese chars.
If can add Photo parameter onto the accelerate of EncodeContact action?
Thanks for your advice and help.