Comments (17)
Anybody has a solution for this?
What the solution should provide
- Converting the persion characters nicely to UTF-8.
from vcard.
Same with accented letters (e.g. à è ò é), that come up as ? on Android.
from vcard.
@giorgiopagnoni Can you tell me which version you are using?
from vcard.
1.2.2. Should I switch to another one?
from vcard.
It seems to be working if I utf8_encode my fields.
from vcard.
I added utf8 encoding to all tags in my last commit but as you said It's not standard.I found another bug in IOS contact.
from vcard.
@sajjadrad You should use the class and not adding utf8 encoding.
Everything works fine in iOS.
from vcard.
@jeroendesloovere check this out:
https://atbox.io/sajjad/vcard
Persian characters problem exists in MS outlook,ios and android contact.
from vcard.
Thanks @sajjadrad
Can you copy/paste the exact PHP code that you used?
And the vCard version?
Thanks
from vcard.
@jeroendesloovere I found the problem. while converting with utf8_decode function, unicode characters converted to question mark (?) as wrong. You used this function for show it properly in MS outlook. I commented it and used exported vcard in android and ios, problem solved but the old problem (outlook) exists while utf8_decode function doesn't use.
from vcard.
I checked output with utf8_decode function in MS outlook. like andorid and ios all persian characters replaced with question marks.
from vcard.
Don't really know what you mean and what I have to do?
from vcard.
I think outlook problem is from it's charset config. I couldn't find any charset settings. The file encoding is right but outlook open it without utf-8 encoding.
from vcard.
Outlook is opening file with Arabic(windows-1256) encoding. It's wrong.
from vcard.
This is the problem:
http://stackoverflow.com/questions/8617439/utf8-encoding-with-vcards-in-windows
Also, please remove this code for correct encoding in ios and android:
https://github.com/jeroendesloovere/vcard/blob/master/src/VCard.php#L580
from vcard.
This bug fixed is pull request #51 but it has not any tags. Composer updates v1.1.2 while pull request has been merged with dev master.
from vcard.
Just utf8_decode function must removed, because each line has charset attribute and there is no need to this function for converting.
from vcard.
Related Issues (20)
- export many vCards in one file? HOT 3
- Not exporting on mobiles anymore HOT 1
- returning void value
- addLabel() doesn't add $this->getCharsetString() HOT 3
- Address doesn't support umlauts
- VCard::addMedia() 'Content-Type' validation should be case insensitive HOT 2
- New release for PHP 8.0?
- New release for PHP 8.0? HOT 4
- ...is not commonly downloaded and may be dangerous
- ORG Property
- GEO key HOT 1
- Phone types not recognized in Outlook or iOS
- Preference not working
- Disable line folding / make it optional HOT 3
- Add return type of inherited methods from Iterator in VCardParser HOT 2
- How can add file name ? HOT 1
- Telephone displayed wrong in vcf file
- for android HOT 2
- AddMedia - fails for if to allow_url_fopen is 0 due to mimetype inspection HOT 2
- Vcard adds 'HOME' and 'WORK'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcard.