entering a phone number with extension

647 views
Skip to first unread message

gabesocial777

unread,
Aug 31, 2010, 12:00:26 PM8/31/10
to zxing
I am trying to create a "contact info" QR code with a phone number
that has an extension. When scanned with an iPhone the space
disappears and the the phone number becomes a string of 13 numbers.
Is there anyway to create a "pause" or a "space" between the sections
of a phone number?

Sean Owen

unread,
Aug 31, 2010, 12:16:21 PM8/31/10
to zxing
Are you using any encoder / decoder related to this project? The
behavior is probably a function of whatever you are using for these.

There's no reason you can't encode something like this in a QR code,
but it's up to the encoder and decoder to parse it as you expect.

I believe Barcode Scanner would work fine in this regard.

Gabriel Araish

unread,
Aug 31, 2010, 12:40:04 PM8/31/10
to zx...@googlegroups.com
Well I can encode for example 416.939.9959...235

But when decoded with an iPhone it looks like this 4169399959235

If Barcode Scanner works to rectify this thats great but I have a 1000
of these cards going out and I don't think I will get a good response
if people have to download another scanner to make it work.

Thanks for your prompt response

Gabe

Sean Owen

unread,
Aug 31, 2010, 2:11:52 PM8/31/10
to zxing
Well, my point is that you may be asking about someone else's software
entirely. I don't know you're even using anything related to this
project.

I looked at the MECARD spec again which is usually used to encode
contact info in QR codes, and it only allows digits for a phone
number:

http://www.nttdocomo.co.jp/english/service/imode/make/content/barcode/function/application/addressbook/

The encoder from this project will strip out anything that isn't a
digit.
http://zxing.org/w/decode.jspx

The vCard format can also be used to encode contact info. It seems to
allow arbitrary text:
http://en.wikipedia.org/wiki/VCard

Barcode Scanner (which is for Android, so is not whatever you are
using) will however read MECARD or vCard with non-digits in the field
as-is.

Gabriel Araish

unread,
Aug 31, 2010, 2:19:58 PM8/31/10
to zx...@googlegroups.com
perhaps you are right...not well versed in interacting in these types
of forums; my apologies. The project I am talking about is the ZXING
QR Code Generator...
Reply all
Reply to author
Forward
0 new messages