[web2py] Re: pound sign display

2011-06-24 Thread apple
One solution is to have a variable called pound and put {{=pound}} in
the template.

However there has to be a better way!

On Jun 24, 9:31 am, apple simo...@gmail.com wrote:
 If I edit my template in a text editor then the £ sign shows up
 normally. If I edit my template in microsoft word and save as filtered
 html (which gets rid of MS Office formatting) then it also shows the £
 normally if I open it directly in a browser. However when it is
 returned from the web2py controller it does not display correctly.

 I notice in hex that in the text file the £ is represented by C2 A3;
 but in the Word edited version it is just A3. I have tried using £,
 pound, #163 but none of these worked.

 I guess there is a bit of converting, encoding and escaping going on.
 How can I force the pound sign to show up?


[web2py] Re: pound sign display

2011-06-24 Thread villas
I think the problem is with your choice of editor.  All of these entities 
appear to work for me:

#xa3;  #163;  #xa3;  pound;




[web2py] Re: pound sign display

2011-06-24 Thread apple
Hurrah! I have the answer.

In Microsoft Word 2010 go to File/Options/Advancedscroll to bottom
and choose web options/encoding. Then select to save document in
unicode (UTF8) format; and tick the box saying always save in the
default encoding.


On Jun 24, 12:41 pm, villas villa...@gmail.com wrote:
 I think the problem is with your choice of editor.  All of these entities
 appear to work for me:

 #xa3;  #163;  #xa3;  pound;


[web2py] Re: pound sign display

2011-06-24 Thread ron_m
I would have great difficulty recommending Word as an editor for working 
with HTML because of all the things it does under the covers. Not trying to 
stir up flames, just trying to make your life easier. As a word processor 
Word is okay.


[web2py] Re: pound sign display

2011-06-24 Thread pbreit
Well put, ron_m. I would have no difficulty recommending against using Word 
to edit HTML. It's just not the right tool...at all. There are so many good 
free/low-cost options on all platforms that using Word makes little sense.

[web2py] Re: pound sign display

2011-06-24 Thread apple
I would not use it for working with HTML normally. However if you have
something like a mailing letter or an invoice then you might want
someone to edit that who has no knowledge of HTML. They can use
tables, outlining and other formatting features of MS Office which
they know; and then load it up to web2py for filling with data.