Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9155921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:40:52+00:00 2026-06-17T12:40:52+00:00

I have some string with arabic encoded and ukrainian (cyrillyc) words, like this: $string

  • 0

I have some string with arabic encoded and ukrainian (cyrillyc) words, like this:

$string = "اِئْتِلافِيٌّ - коаліційний, гармонійний;";

and I want to get characters (arabic) instead all this “&#xxxx;”`s.

If I putting this string into html, I’m getting exactly what i want:
“اِئْتِلافِيٌّ – коаліційний, гармонійний;”

But when I use html_entitis_decode, it does nothing. (mb because arabic encoding does not supports with this function, just basic ASCII).
So, plz tell me what should I do to get same result as browser interpreter?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:40:53+00:00Added an answer on June 17, 2026 at 12:40 pm

    Your PHP version is probably older than 5.4.0, thus html_entity_decode is not using UTF-8.

    Encoding to use. If omitted, the default value for this argument is ISO-8859-1 in versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards.

    http://php.net/manual/en/function.html-entity-decode.php


    Try the following:

    $decoded_string = html_entity_decode($string, ENT_COMPAT | ENT_HTML401, "UTF-8");
    

    View output here on Codepad

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some string like this: 04:51 05:09 05:29_ 05:49 06:09 06:29 06:49_ 07:09
I have some string that have a type like this NSString *string1 = @/Users/mine/Library/Application
I have some random string, let's say : s = This string has some
I have some string data with alphanumeric value. like us01name, phc01name and other i.e
I have some string bla bla bla bla <I NEED THIS TEXT> What is
if i have some string e.g: String s = This is a string; And
ok i have some string 'Hello^<php>World&*124>< i ju*st press enteR' how do i return
Not sure if this is the best approach but I have some string which
I have some arraylist string with keyword inside like that ! A windows is
In some RightToLeft languages (Like Arabic, Persian, Urdu, etc) each letter can have different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.