开发者

How to store special signs like $ dollar and € euro in database via form

开发者 https://www.devze.com 2023-04-05 11:26 出处:网络
When i type in a amount with a special sign like: €140 via my form it stores it in my db exactly the same, But when i try to retrieve the开发者_如何转开发 amount it gives a strange signs instead of s

When i type in a amount with a special sign like: €140 via my form it stores it in my db exactly the same, But when i try to retrieve the开发者_如何转开发 amount it gives a strange signs instead of showing the special character normal. How do i need to store the special kind of signs to be able to retrieve it succesfuly?


Make sure you're using UTF-8 throughout your system (HTML doc type, PHP settings, MySQL settings).

Also, make sure you're calling htmlentities($string_to_print) when trying to display a given string.

0

精彩评论

暂无评论...
验证码 换一张
取 消