Giter Club home page Giter Club logo

Comments (17)

jeroendesloovere avatar jeroendesloovere commented on August 23, 2024

Anybody has a solution for this?

What the solution should provide

  • Converting the persion characters nicely to UTF-8.

from vcard.

giorgiopagnoni avatar giorgiopagnoni commented on August 23, 2024

Same with accented letters (e.g. à è ò é), that come up as ? on Android.

from vcard.

jeroendesloovere avatar jeroendesloovere commented on August 23, 2024

@giorgiopagnoni Can you tell me which version you are using?

from vcard.

giorgiopagnoni avatar giorgiopagnoni commented on August 23, 2024

1.2.2. Should I switch to another one?

from vcard.

giorgiopagnoni avatar giorgiopagnoni commented on August 23, 2024

It seems to be working if I utf8_encode my fields.

from vcard.

sajjadrad avatar sajjadrad commented on August 23, 2024

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.
image

from vcard.

jeroendesloovere avatar jeroendesloovere commented on August 23, 2024

@sajjadrad You should use the class and not adding utf8 encoding.
Everything works fine in iOS.

from vcard.

sajjadrad avatar sajjadrad commented on August 23, 2024

@jeroendesloovere check this out:
https://atbox.io/sajjad/vcard

Persian characters problem exists in MS outlook,ios and android contact.

from vcard.

jeroendesloovere avatar jeroendesloovere commented on August 23, 2024

Thanks @sajjadrad
Can you copy/paste the exact PHP code that you used?
schermafbeelding 2016-04-15 om 10 48 10
And the vCard version?
Thanks

from vcard.

sajjadrad avatar sajjadrad commented on August 23, 2024

@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.

sajjadrad avatar sajjadrad commented on August 23, 2024

I checked output with utf8_decode function in MS outlook. like andorid and ios all persian characters replaced with question marks.

from vcard.

jeroendesloovere avatar jeroendesloovere commented on August 23, 2024

Don't really know what you mean and what I have to do?

from vcard.

sajjadrad avatar sajjadrad commented on August 23, 2024

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.

sajjadrad avatar sajjadrad commented on August 23, 2024

Outlook is opening file with Arabic(windows-1256) encoding. It's wrong.

from vcard.

sajjadrad avatar sajjadrad commented on August 23, 2024

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.

sajjadrad avatar sajjadrad commented on August 23, 2024

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.

sajjadrad avatar sajjadrad commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.