mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
ISSUE-298: commas misinterpreted in MECARD N field
git-svn-id: https://zxing.googlecode.com/svn/trunk@1160 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
20ae03785b
commit
4b33ab2edb
|
@ -71,6 +71,7 @@ public class ContactInfoGenerator implements GeneratorSource {
|
||||||
String email, String address, String address2, String memo) {
|
String email, String address, String address2, String memo) {
|
||||||
StringBuilder output = new StringBuilder();
|
StringBuilder output = new StringBuilder();
|
||||||
output.append("MECARD:");
|
output.append("MECARD:");
|
||||||
|
name = name.replace(",", ""); // remove commas -- reserved char in MECARD
|
||||||
output.append("N:").append(name).append(';');
|
output.append("N:").append(name).append(';');
|
||||||
//maybeAppend(output, "ORG:", company); // Not standard; don't generate
|
//maybeAppend(output, "ORG:", company); // Not standard; don't generate
|
||||||
maybeAppend(output, "TEL:", tel);
|
maybeAppend(output, "TEL:", tel);
|
||||||
|
|
Loading…
Reference in a new issue