BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
104 stars 80 forks source link

[Bug]: German Umlaute not stored correctly #215

Open andreas-farella-divus opened 2 years ago

andreas-farella-divus commented 2 years ago

Context

We use linphone-sdk, linphone-android and linphone-iOS for our branded app, together with our intercom system.

General information

Reproduced on multiple Android/iOS devices. Reproduced both with currently available linhome-iOS and linhome-Android apps, available on the stores. Reproduced on SDK: 5.0.69 (iOS), 5.1.11 (iOS)

Expected behaviour

I want to create a contact which contains German Umlaute in the device name (e.g. "Günther"), works fine.

Once the app is closed and opened again, the text is not parsed correctly (e.g. "Günther").

To Reproduce

  1. Create a new contact with a German Umlaut in the field "device name": e.g. Günther
  2. Save the contact, name is displayed correctly in the device list.
  3. Close the app and remove from recents.
  4. Open app again.
  5. Device name is not displayed correctly anymore: e.g. Günther

Additional context

Seems like the problem is inside Config.dumpAsXml() of linphone_jni.cc, as it does not parse correctly the Umlaut when storing to file/XML.

e.g. on Android check files/devices.xml once the contact is saved.

SDK logs URL

No response

Viish commented 2 years ago

Please attach logs from app & SDK showing the issue.

andreas-farella-divus commented 2 years ago

On Android smartphone, linhome-app as currently available on the Play Store:

Video of the issue: https://drive.google.com/file/d/1Dodl6cFV3nfydOYqnkHnFlQtLVcThSHA/view?usp=sharing

Logs: https://www.linphone.org:444//tmp/623af7d2e61e5_3d80f00f8d132e630508.gz

Viish commented 2 years ago

Thanks!

andreas-farella-divus commented 1 year ago

Any news on this?