Jump to content

phonetic characters does not support on logs


dinusha

Recommended Posts

Hi i'm facing a issue in logs some IPA characters are note showing in logs properly.
in the orders and other places "CORUÑA, A" showing correctly with "Ñ" letter but in logs it shows as "CORUNA, A"


i have tried hook_transliterate

$string = str_replace("\u00d1","Ñ",$string);
and
$string = str_replace("Ñ","Ñ",$string);
in both ways it shows log as
CORUÑA -> CORU/u00d1A

then i tried
$string_new = preg_replace('/[\]uU /', '&#x$1;', $string);
return html_entity_decode($string_new, ENT_COMPAT, 'UTF-8');

but same issue here also
CORUÑA -> CORU/u00d1A

i tried this buy replacing random letter like
$string = str_replace("Ñ","Z",$string);
then it worked as expected
CORUÑA -> CORUZA

cloud you please help me to show these phonetic characters correctly in module logs 

ipa.jpg

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated