Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird character PHP \u00a3 instead of £

Tags:

php

well I'm having a problem and this weird character is showing up '\u00a3'

it's suppose to be a " £ " symbol, but for some reason it's not doing that,anyone got any ideas why.

like image 742
user2629419 Avatar asked Feb 26 '26 13:02

user2629419


1 Answers

Set the correct encoding of the webpage output, add this to the HEAD section of your HTML

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
like image 128
ilyes kooli Avatar answered Mar 01 '26 02:03

ilyes kooli