开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜