[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

£ display problem

Posted on 2007-10-08
3
Medium Priority
?
465 Views
Last Modified: 2008-01-09
Using HTML, does anyone know a good solution as to why sometimes we get an output of: £ rather than £?

We have tried £ and £. We have also tried to declare different character sets, yet no joy!
0
Comment
Question by:orbic1
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
R7AF earned 2000 total points
ID: 20033989
When you declare a different character set, do you change the settings in your editor and save the file using that character set? In that case I think you should be able to use the £ character directly. Another option is to use £ with UTF-8.
0
 
LVL 4

Author Comment

by:orbic1
ID: 20034095
Hi - thanks for your response.

I've double checked the file, and that is saved in UTF-8. The data is passed by a form where both the sending and receiving has the following declared:

<meta http-equiv="content-type" content="text/html; charset=utf-8">

and for good measure, at the top of the document is:
<?php header('Content-Type: text/html; charset=utf-8'); ?>

I have tried no: £, &pound and &#163; - all of which render: £

New Info - It turns out that this is only a problem when the data is sent through via email, rather than on screen. I must be missing something relatively simple here!
0
 
LVL 4

Author Comment

by:orbic1
ID: 20034123
Right - sorted! The mail function file wasn't saved using utf-8! Many thanks for the help! Have some points!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question