[asterisk-bugs] [JIRA] (ASTERISK-26834) app_voicemail: UTF-8 string does not get properly used in email

Sean Bright (JIRA) noreply at issues.asterisk.org
Tue Mar 7 17:38:10 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright closed ASTERISK-26834.
----------------------------------

    Resolution: Not A Bug

The only codepoints representable by a single byte in UTF-8 are {{[0x00,0x7F]}}. The value of {{ç}} in your file is a single byte with the value {{0xE7}} which is invalid UTF-8.

My guess it that whatever device you are setting this Caller ID with is using the Windows 1252 codepage instead of UTF-8.  You should overwrite it by copy/pasting the following text (valid UTF-8) verbatim into your user agent and trying again: {{Émile François}}

If you confirm that your user agent (or whatever is supplying your Caller ID name) is correctly configured and feel this issue was closed in error, please feel free to re-open.

> app_voicemail: UTF-8 string does not get properly used in email
> ---------------------------------------------------------------
>
>                 Key: ASTERISK-26834
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26834
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail
>    Affects Versions: 14.2.0
>         Environment: Asterisk Realtime 14.2 PJSIP Driver
> mysql  5.1.73
> unixODBC 2.2.14
> pjproject 2.5.5
> spandsp 0.0.6
> jansson 2.7
> CentOS 6.6 64 bits on Vmware
> Phones : Cisco SPA514G FW: 7.5.7
> ATA : Audiocodes MP124
> T1 : Mediatrix 3532 ISDN 
> CPU : Quadcore Intel(R) Xeon(R) CPU E5-2650
> RAM : 8 GB
> HDD : 35 GB
> Average concurent calls: 25
> Average calls/day: 2000
>            Reporter: Carl Fortin
>            Severity: Minor
>         Attachments: debug_log_JSON_Accent.log, voicemail.conf
>
>
> I had this error in my console since at least Asterisk 13.5.
> I did ask on the forum at the time but I could not reproduce the issue:
> https://community.asterisk.org/t/random-error-utf-8-string/49703/4
> I can now reproduce the issue :
> If a caller leaves  a voicemail and the caller's ID name contains accent characters and the message is sent by email, it will produce the following error:
> {noformat}
> ERROR[30993][C-00000024] json.c: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string
> {noformat}
> The accent characters will be missing from the $\{VM_CIDNAME} variable and the sender's name will be incorrect in the email.
> Check my  log, The callerid name was Émile François.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list