Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove utf non breaking space

Non-breaking spaces can be troublesome with trim:

// nbsp are translated to 0xA0, so use:
// UTF encodes it as chr(0xC2).chr(0xA0)
$converted = trim($converted,chr(0xC2).chr(0xA0)); // should work
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #remove #utf #breaking #space
ADD COMMENT
Topic
Name
3+9 =