Re: [web2py] Apostrophe's disapperaing

2013-12-17 Thread Jonathan Lundell
On 17 Dec 2013, at 3:32 PM, Dave S wrote: > On Monday, December 16, 2013 7:15:12 AM UTC-8, Jonathan Lundell wrote: > On 16 Dec 2013, at 2:18 AM, peter 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. >> >>

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 > > 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

Re: [web2py] Apostrophe's disapperaing

2013-12-16 Thread Jonathan Lundell
On 16 Dec 2013, at 2:18 AM, peter 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 thought it was not >

Re: [web2py] Apostrophe's disapperaing

2013-12-13 Thread Jonathan Lundell
On 13 Dec 2013, at 2:29 AM, peter 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 a work around, a bit u

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. sma

Re: [web2py] Apostrophe's disapperaing

2013-12-12 Thread Jonathan Lundell
On 12 Dec 2013, at 6:12 PM, Jonathan Lundell wrote: > On 12 Dec 2013, at 4:16 PM, peter 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

Re: [web2py] Apostrophe's disapperaing

2013-12-12 Thread Jonathan Lundell
On 12 Dec 2013, at 4:16 PM, peter 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 document is > preserve

[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 web