Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCF/VCARD compatibility for accented characters #31958

Closed
mdeweerd opened this issue Nov 16, 2024 · 1 comment
Closed

VCF/VCARD compatibility for accented characters #31958

mdeweerd opened this issue Nov 16, 2024 · 1 comment
Labels
Bug This is a bug (something does not work as expected)

Comments

@mdeweerd
Copy link
Contributor

Bug

When importing a VCARD in Outlook, I generally get this kind of import:

Rue de l=E2=80=99Ermitage=0D=0A=0D=0A

Over the years I've only observed this when exchanging a VCF file generated by Dolibarr.

So there is some incompatibility between dolibarr's format and outlook's format.
I also tried Google contacts to check, the result is similar.

Dolibarr Version

No response

Environment PHP

No response

Environment Database

No response

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

@mdeweerd mdeweerd added the Bug This is a bug (something does not work as expected) label Nov 16, 2024
@mdeweerd
Copy link
Contributor Author

After analysis, the export should look like this:

TITLE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=E8=94=A1=E5=AA=9BR=C3=A9f=C3=A9rent

but it looks like this:

```vcard
TITLE;ENCODING=QUOTED:=E8=94=A1=E5=AA=9BR=C3=A9f=C3=A9rent

The other thing is that Outlook nneds to be configured to export to UTF-8 (yea, export) - see https://stackoverflow.com/a/42859637 .

mdeweerd added a commit to mdeweerd/dolibarr that referenced this issue Nov 16, 2024
Fix Dolibarr#31958 - avoid messing up ENCODIGN & add CHARSET

Workaround by limiting the too generic replacement for social networks.
Add CHARSET for proper decoding.
@eldy eldy closed this as completed in 860e1b7 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant