$variable = encode("iso-8859-1", $variable); #### print "Some text".$variable."Some other text"; #### print $variable."Some other text";