Jump to content

Recommended Posts

Hey guys I'm having a bit of a problem trying to convert this string to UTF-8 encoding

 

組ですが、 中には5- 6本のおす すめ番組の エッセンス が、ぎっし り詰まって います。

 

I've used

$strTem = mb_convert_encoding($strTem, "UTF-8", "auto");

and while that detects the correct current encoding it doesnt change it at all and utf8_encode doesnt work at all, dont know what to use.

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/211415-convert-ascii/
Share on other sites

Sorry I'll give a better example, was reading again and noticed it makes no sense :D, look at this code

 

$stringer = "&#65";
$str = mb_convert_encoding($stringer, "UTF-8", "ASCII");
echo $str;

 

$stringer is A in ascii code, if i the code goes trough all the way it will of course output A on the browser but if you go look at the page source it's still &#65, were if i were to just replace stringer with the actual letter A the page source will show the letter A, what I'm trying to do is to get the script to convert the ascii code with the equivalent letter and output the letter over the code. If you get what i mean :)

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/211415-convert-ascii/#findComment-1102435
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.