vcard

php vcard display as plain text

孤人 提交于 2020-01-23 04:27:16
问题 i have a new feature on my site that allow user to get vcard files. this feature reads data from my database (which this one works) and generate the vcard. the file is: vcard.php and i pass the user id as GET then i get all the information using that id my problem is when i want to get the vcard, it display as text. here's a simplified version of my code: <?php class Vcard { public function __construct() { $this->props = array(); } public function setName($family, $first) { $name = $family .

Character encoding issues with PHP generated vCards in Outlook

ⅰ亾dé卋堺 提交于 2020-01-14 12:43:26
问题 We're encountering character encoding issues trying to create vcards in PHP. In Outlook names that use special characters are distorted, like "é" becomes "é". We updated the header and the FN and N sections for Windows character encoding, but the issue remains. Grateful for any suggestions. Vcard excerpt: BEGIN:VCARD VERSION:3.0 REV:2013-03-27 19:37:46 FN;CHARSET=Windows-1252:Namé S. Nameé N;CHARSET=Windows-1252:Namé;Namé;;; TITLE:Associate ORG:Company EMAIL;TYPE=internet,pref:name@abc.com

Character encoding issues with PHP generated vCards in Outlook

我的梦境 提交于 2020-01-14 12:43:11
问题 We're encountering character encoding issues trying to create vcards in PHP. In Outlook names that use special characters are distorted, like "é" becomes "é". We updated the header and the FN and N sections for Windows character encoding, but the issue remains. Grateful for any suggestions. Vcard excerpt: BEGIN:VCARD VERSION:3.0 REV:2013-03-27 19:37:46 FN;CHARSET=Windows-1252:Namé S. Nameé N;CHARSET=Windows-1252:Namé;Namé;;; TITLE:Associate ORG:Company EMAIL;TYPE=internet,pref:name@abc.com

How to download a .vcf file correctly

て烟熏妆下的殇ゞ 提交于 2020-01-02 04:17:07
问题 I'd like to know, how can I realise a Vcard download. That's my current code: $path = "../../media/resources/"; $file = "someName.vcf"; header('Content-Type: text/x-vCard'); header('Content-Disposition: attachment; filename= "'.$file.'"'); header('Content-Length: '.filesize($path.$file)); header('Connection: close'); readfile($path.$file); Unfortunately, it does only give out the content from the .vcf file. How can I give this vcard to the user as a download? 回答1: You have header('Connection:

Creating a vCard in iPhone

大兔子大兔子 提交于 2020-01-01 06:54:29
问题 I'm trying to create a vCard representation in the iPhone. I created a string representation for the vCard. I'm not sure how to convert it into the NSData form in order to mail it as an attachment. This is what I have so far: NSString *vCardString = [vCard getVCFString]; // returns string representation for vCard NSData *vCardData = [vCardString dataUsingEncoding:NSUTF8StringEncoding]; [mailController addAttachmentData:vCardData mimeType:@"text/x-vcard" fileName:@"LocationInfo"]; When I click

Android - How to attach file to SMS?

纵然是瞬间 提交于 2019-12-30 07:09:06
问题 I need to send contact via SMS. So, I'm using .vcf file. Still, I need to attach it to sms within android SDK. There IS such function within android. I've tried it on my smartphone; I was searching for the way to do that for days and everything I've found so far was this nice library to construct vCard and this method of SMSManager class. Does anyone know how to do that??? I suppose solution of this problem shall work not only for vcf, but for any file extension. If you'll add some code as an

iPhone: how to get safari to recognize a vcard?

天涯浪子 提交于 2019-12-28 05:35:13
问题 I'm trying to create a QR code so that iPhone users can import my address book information. I'm doing this by: putting a VCF (vcard) file on my web server creating a QR image that contains this URL. http://markharrison.net/mh-vcf-small.png This is working on my desktop browser (it opens the vcard with the address book app). On the iPhone, the QR reader successfully tells safari to access the vcard, but then safari complains it does not know how to handle the vcard. I've confirmed that Content

vCard Parsing different parameters

随声附和 提交于 2019-12-25 00:50:21
问题 I need to write a vCard Parser. Now the problem is that the Vcard I get can have n number of paramenters Like say TEL;CELL:123 or TEL;CELL;VOICE:123 or TEL:HOME;CELL;VOICE:123 now how i get this format really depends on my sources(which can be diverse and many). Now I need to make a generic reader which can identify tht all these different set of parameters can map to a single field(in this case Mobile number), but the way of sending this information varies across all sources(google, MS,

Donot insert image source code when making vcard in api level 8

☆樱花仙子☆ 提交于 2019-12-23 03:52:08
问题 I am making Vcard using this code , now I want In my vcard don't insert code of image , all other things will added in vcard , how I do it .... I'm using this String VCard = ""; Cursor phones = getContentResolver().query(android.provider.ContactsContract.Contacts.CONTENT_URI , null,null, null, null); phones.moveToFirst(); pDialog.setMax(phones.getCount()); for(int i =0;i<phones.getCount();i++) { String lookupKey = phones.getString(phones.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY));

Donot insert image source code when making vcard in api level 8

偶尔善良 提交于 2019-12-23 03:52:05
问题 I am making Vcard using this code , now I want In my vcard don't insert code of image , all other things will added in vcard , how I do it .... I'm using this String VCard = ""; Cursor phones = getContentResolver().query(android.provider.ContactsContract.Contacts.CONTENT_URI , null,null, null, null); phones.moveToFirst(); pDialog.setMax(phones.getCount()); for(int i =0;i<phones.getCount();i++) { String lookupKey = phones.getString(phones.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY));