I'm specifically asking if, and what, is the specification for formatting the text inside a QR code - not how to generate a code (which I can do).
I need to put hCard data into a QR code, however I don't know how to mark the QR code as VCF data (versus URL, text, etc) so the decoder knows what to do.
All the info I've seen online has to do with generating the QR code, not formatting the data inside.
In the past I have found information at http://www.nttdocomo.co.jp/english/service/imode/make/content/barcode/function/, a page which I can not trace (easily?) anymore.
Who says you have to pay for this info? just go to this page http://qrcodenet.codeplex.com/ and scroll to the bottom REFERENCES section and you should find a free download like tited 4. ISO/IEC 18004:2006(E) - QR code specification ISOIEC 18004_2006Cor 1_2009.pdf
There is no official specification for this -- the QR code spec does not say anything about the contents. Everything I know about the commonly-used and de facto formats and conventions is summarized in this wiki: https://github.com/zxing/zxing/wiki/Barcode-Contents
See http://www.onbarcode.com/qr_code/ for helpful info - both about encoding and generating, and several libraries to use as well.
The official spec is available here from iso.org, but you have to pay for it.
See http://www.denso-wave.com/qrcode/qrstandard-e.html and http://www.denso-wave.com/qrcode/aboutqr-e.html
from http://www.denso-wave.com/qrcode/qrstandard-e.html: