Re: [web2py] Apostrophe's disapperaing

2013-12-17 Thread Dave S
On Monday, December 16, 2013 7:15:12 AM UTC-8, Jonathan Lundell wrote: On 16 Dec 2013, at 2:18 AM, peter peterchu...@gmail.com javascript: wrote: I am impressed at how helpful you have been on this Jonathon. It does say in the mht file that it is windows-1252 encoded. It turns out that

Re: [web2py] Apostrophe's disapperaing

2013-12-17 Thread Jonathan Lundell
On 17 Dec 2013, at 3:32 PM, Dave S snidely@gmail.com wrote: On Monday, December 16, 2013 7:15:12 AM UTC-8, Jonathan Lundell wrote: On 16 Dec 2013, at 2:18 AM, peter peterchu...@gmail.com wrote: I am impressed at how helpful you have been on this Jonathon. It does say in the mht file that

Re: [web2py] Apostrophe's disapperaing

2013-12-16 Thread Jonathan Lundell
On 16 Dec 2013, at 2:18 AM, peter peterchutchin...@gmail.com wrote: I am impressed at how helpful you have been on this Jonathon. It does say in the mht file that it is windows-1252 encoded. It turns out that s.decode('cp1252').encode('utf-8') is working correctly. I mistakenly

Re: [web2py] Apostrophe's disapperaing

2013-12-13 Thread peter
Thank you Jonathon for taking the time to make two good suggestions. The first did not get the apostrophes to appear. WRT the second, one can only control the encoding of Word when outputting txt files. I have now created a work around, a bit ugly but the best I can achieve for the moment.

Re: [web2py] Apostrophe's disapperaing

2013-12-13 Thread Jonathan Lundell
On 13 Dec 2013, at 2:29 AM, peter peterchutchin...@gmail.com wrote: Thank you Jonathon for taking the time to make two good suggestions. The first did not get the apostrophes to appear. WRT the second, one can only control the encoding of Word when outputting txt files. I have now created

[web2py] Apostrophe's disapperaing

2013-12-12 Thread peter
I have a word document that I output as a .'.mht; file ie, a 'single file web page'. I can put sections of this into a string field in a database and then display the field through a view, and the formatting in the word document is preserved. here is a line from the file that I read into

Re: [web2py] Apostrophe's disapperaing

2013-12-12 Thread Jonathan Lundell
On 12 Dec 2013, at 4:16 PM, peter peterchutchin...@gmail.com wrote: I have a word document that I output as a .'.mht; file ie, a 'single file web page'. I can put sections of this into a string field in a database and then display the field through a view, and the formatting in the word

Re: [web2py] Apostrophe's disapperaing

2013-12-12 Thread Jonathan Lundell
On 12 Dec 2013, at 6:12 PM, Jonathan Lundell jlund...@pobox.com wrote: On 12 Dec 2013, at 4:16 PM, peter peterchutchin...@gmail.com wrote: I have a word document that I output as a .'.mht; file ie, a 'single file web page'. I can put sections of this into a string field in a database and