Php convert utf8 to shift-jis
3 Show The current email is in
UTF-8. It's not working on Shift-JIS. This is what I have tried so far
Improve this question edited Feb 3, 2016 at 23:24
theraccoonbear 4,1773 gold badges33 silver badges41 bronze badges asked Dec 4, 2015 at 0:26
Dunhill DimaapiDunhill Dimaapi 551 silver badge5 bronze badges 0 Add a comment | 1 AnswerSorted by: Reset to default 5 You can convert utf-8 to shift-JIS by doing this:
Improve this answer answered Dec 4, 2015 at 0:33
Oliver NybroeOliver Nybroe 1,81821 silver badges29 bronze badges Add a comment | Your AnswerSign up or log inSign up using Google Sign up using Facebook Sign up using Email and Password Post as a guestName Required, but never shown By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy Not the answer you're looking for? Browse other questions tagged php or ask your own question.(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) mb_convert_encoding — Convert a string from one character encoding to another Descriptionmb_convert_encoding(array|string Parametersstring The string or array to be converted. to_encoding The desired encoding of the result. from_encoding
The current encoding used to interpret If See supported encodings for valid values of Return Values The encoded string or array on success, or Errors/Exceptions As of PHP 8.0.0, a ValueError is thrown if the value of Changelog
ExamplesExample #1 mb_convert_encoding() example
See Also
josip at cubrad dot com ¶ 9 years ago
regrunge at hotmail dot it ¶ 12 years ago
mb_list_encodings() as $chr){
volker at machon dot biz ¶ 14 years ago
eion at bigfoot dot com ¶ 16 years ago
francois at bonzon point com ¶ 13 years ago
aaron at aarongough dot com ¶ 13 years ago
$target; vasiliauskas dot agnius at gmail dot com ¶ 4 years ago
Stephan van der Feest ¶ 17 years ago
Daniel Trebbien ¶ 13 years ago
Rainer Perske ¶ 25 days ago
bmxmale at qwerty dot re ¶ 7 months ago
urko at wegetit dot eu ¶ 10 years ago
me at gsnedders dot com ¶ 13 years ago
mac.com@nemo ¶ 16 years ago
= iconv('UTF-8', 'macintosh', $string);?> Tom Class ¶ 16 years ago
nicole ¶ 6 years ago
katzlbtjunk at hotmail dot com ¶ 14 years ago
Daniel ¶ 6 years ago
lanka at eurocom dot od dot ua ¶ 19 years ago
$i=0; $i<strlen($str); $i++) { nospam at nihonbunka dot com ¶ 14 years ago
aofg ¶ 15 years ago
David Hull ¶ 15 years ago
jamespilcher1 - hotmail ¶ 18 years ago
gullevek at gullevek dot org ¶ 12 years ago
StigC ¶ 14 years ago
rodrigo at bb2 dot co dot jp ¶ 14 years ago
phpdoc at jeudi dot de ¶ 16 years ago
qdb at kukmara dot ru ¶ 10 years ago
' DanielAbbey at Hotmail dot co dot uk ¶ 8 years ago
Stephan van der Feest ¶ 17 years ago
Edward ¶ 14 years ago
mightye at gmail dot com ¶ 14 years ago
jackycms at outlook dot com ¶ 8 years ago
("windows-874","UTF-8",$input);?>
|