Answer the question
In order to leave comments, you need to log in
Why is some Cyrillic strings cut off when creating a vCard QR code using qrlib.php?
Making a QR code with a vCard contact. I collect from strings like:
...
$addressStreet = quoted_printable_encode('Malookhtinsky prospect, 15');
$addressTown = quoted_printable_encode('Saint Petersburg');
...
So everything works fine. But it is clear that the code contains a lot of information, there are a lot of points.
I noticed that in any QR code generators, the code with the same set of information is clearly "less".
I tried to encode strings without quoted_printable_encode and everything is readable, and the code has become smaller. But, there was a problem that some lines are cut off. And not at the beginning or end, but somewhere in the middle.
For example, the address from the example above is read from the code approximately as Address: Malookhtinct-Petersburg
I can't figure out what's wrong. It seems that the lines do not fit into some kind of restriction. But I could not find what this limitation is and how to get around it. (Generators do it somehow). I would be grateful for a hint what is the matter, or where to look for the answer.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question