€ symbol rendering as €2

Unusual problem here: I have an app that uses a text file which contains a few '€' symbols as well as other text in a text file to populate a mysql database. When rendered locally, the € symbol looks fine, but on the linux server and out on the web in html, it looks like this in some browsers:

€2

can anyone suggest a solution

Answers


Use an UTF-8 encoding type on your file and make sure you add a content-type meta tag to your page:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

Hope this helps !


Set the charset in the headers or a <META> element to UTF-8 so that it isn't processed as CP1250.


Need Your Help

PHP upload image replace old

php mysql image upload replace

Ok so I am working on a backoffice at work.

RecyclerView onCreateViewHolder Return Type Incompatibility With Multiple Custom ViewHolders

android recyclerview android-viewholder staggeredgridlayout recyclerview-layout

I'm trying to use multiple ViewHolders in a RecyclerView in order to swap these views out at run time. I have created two classes which extend RecyclerView.ViewHolder:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.