Possible duplicate:PHP remove accents
The name says it, but anyway ...
I get data from the input file, and inside the data we will have the symbol Γ©. For our purposes, we want to convert this to regular lowercase e.
Does anyone know how to do this?
Only one character? It seems too obvious ... just replace it.
$str = "Γ©"; $str = str_replace("Γ©","e",$str); echo $str; // "e"
I would use this:
PHP Function: string strtr (string $ str, string $ from, string $ to)
from the PHP site:
<?php //In this form, strtr() does byte-by-byte translation //Therefore, we are assuming a single-byte encoding here: $addr = strtr($addr, "Γ€Γ₯ΓΆ", "aao"); ?>
http://php.net/manual/en/function.str-replace.php
$myText = str_replace( array('Γ©'), array('e'), $myText);
$string = str_replace ('Γ©', 'e', ββ$ string);
Source: https://habr.com/ru/post/1773660/More articles:mysql get order to happen before group - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1773656/using-sharepoints-listsasmx-and-updatelistitems-to-delete-an-item-by-guid-or-uniqueid&usg=ALkJrhh6qvEdqzMZppns8Y_MOPX_JdlAeAC & Fmod Ex - real-time PCM array / buffer playback - audioSafari stuck in an endless loop during testing - anyway? - safariReplace Γ© with e in PHP - phpIs there any reason to replace JavaScript JScript in Internet Expolorer? - performanceHow to implement a nested ArrayList? - javaWhich artificial intelligence theory is likely to lead to intelligent machines? - artificial-intelligencecan we get the desired part from the vicar api? - javascriptWindsor Castle BuildUp - dependency-injectionAll Articles