Re: Characters aren't displayed correctly

2009-03-27 Thread J. Clifford Dyer
On Mon, 2009-03-02 at 06:16 -0800, Hussein B wrote: > On Mar 2, 4:03 pm, "J. Clifford Dyer" wrote: > > On Mon, 2009-03-02 at 00:33 -0800, Hussein B wrote: > > > On Mar 1, 11:27 pm, "J. Clifford Dyer" wrote: > > > > On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > > > > > On Mar 1, 200

Re: Characters aren't displayed correctly

2009-03-03 Thread Steve Holden
Philip Semanchuk wrote: > > On Mar 2, 2009, at 5:26 PM, John Machin wrote: [...] > I (mostly) agree with your rule. But as I said, there's more than one > way to solve this problem. Or perhaps I should say that there's more > than one way to lead the OP to a solution to this problem. We teach > di

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 1:54 pm, John Machin wrote: > On Mar 3, 10:22 pm, Hussein B wrote: > > > > > Hey, > > > > I added use_unicode and charset keyword params to the connect() method > > > > Hey, that was a brilliant idea -- I was just about to ask you to try > > >  use_unicode=True, charset="utf8" ... what

Re: Characters aren't displayed correctly

2009-03-03 Thread John Machin
On Mar 3, 10:22 pm, Hussein B wrote: > > > Hey, > > > I added use_unicode and charset keyword params to the connect() method > > > Hey, that was a brilliant idea -- I was just about to ask you to try > >  use_unicode=True, charset="utf8" ... what were the actual values that > > you used? > > I did

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 12:21 pm, John Machin wrote: > On Mar 3, 8:49 pm, Hussein B wrote: > > > > > On Mar 3, 11:05 am, Hussein B wrote: > > > > On Mar 2, 5:40 pm, John Machin wrote: > > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar > > > > > 2, 7:30 

Re: Characters aren't displayed correctly

2009-03-03 Thread John Machin
On Mar 3, 8:49 pm, Hussein B wrote: > On Mar 3, 11:05 am, Hussein B wrote: > > > > > On Mar 2, 5:40 pm, John Machin wrote: > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > > > 7:30 pm, Hussein B wrote: > > > > > > > On Mar 1, 4:51 pm,

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 11:05 am, Hussein B wrote: > On Mar 2, 5:40 pm, John Machin wrote: > > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > > 7:30 pm, Hussein B wrote: > > > > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > > > > On Mar 1, 2

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 2, 5:40 pm, John Machin wrote: > On Mar 3, 1:50 am, Hussein B wrote: > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > 7:30 pm, Hussein B wrote: > > > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > > > Hey,

Re: Characters aren't displayed correctly

2009-03-02 Thread Philip Semanchuk
On Mar 2, 2009, at 5:26 PM, John Machin wrote: On Mar 3, 3:27 am, Philip Semanchuk wrote: He claims to have done what I asked him to do in the first place -- break the problem into steps and verify the database steps. He says they're working OK. I chose to take him at his word. Rule number

Re: Characters aren't displayed correctly

2009-03-02 Thread John Machin
On Mar 3, 3:27 am, Philip Semanchuk wrote: > On Mar 2, 2009, at 10:50 AM, John Machin wrote: > > > On Mar 3, 2:22 am, Philip Semanchuk wrote: > >> See if you can successfully construct and send an email that says > >> "Hello world" in English/ASCII. If that works, change it to Arabic.   > >> If >

Re: Characters aren't displayed correctly

2009-03-02 Thread Philip Semanchuk
On Mar 2, 2009, at 10:50 AM, John Machin wrote: On Mar 3, 2:22 am, Philip Semanchuk wrote: See if you can successfully construct and send an email that says "Hello world" in English/ASCII. If that works, change it to Arabic. If that works, change the email format to HTML. If that works, st

Re: Characters aren't displayed correctly

2009-03-02 Thread John Machin
On Mar 3, 2:22 am, Philip Semanchuk wrote: > On Mar 2, 2009, at 9:50 AM, Hussein B wrote: > > > On Mar 2, 4:31 pm, John Machin wrote: > >> On Mar 2, 7:30 pm, Hussein B wrote: > > >>> On Mar 1, 4:51 pm, Philip Semanchuk wrote: > What are you getting out of the database? Is it being converte

Re: Characters aren't displayed correctly

2009-03-02 Thread John Machin
On Mar 3, 1:50 am, Hussein B wrote: > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > 7:30 pm, Hussein B wrote: > > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > > Hey, > > > > > I'm retrieving records from MySQL database tha

Re: Characters aren't displayed correctly

2009-03-02 Thread Philip Semanchuk
On Mar 2, 2009, at 9:50 AM, Hussein B wrote: On Mar 2, 4:31 pm, John Machin wrote: On Mar 2, 7:30 pm, Hussein B wrote: On Mar 1, 4:51 pm, Philip Semanchuk wrote: What are you getting out of the database? Is it being converted to Unicode correctly, or at all? I don't know, how to make

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 2, 4:31 pm, John Machin wrote: > On Mar 2, 7:30 pm, Hussein B wrote: > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > Hey, > > > > I'm retrieving records from MySQL database that contains non english > > > > characters. > > Ca

Re: Characters aren't displayed correctly

2009-03-02 Thread John Machin
On Mar 2, 7:30 pm, Hussein B wrote: > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > Hey, > > > I'm retrieving records from MySQL database that contains non english > > > characters. Can you reveal which language??? > > > Then I create a St

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 2, 4:03 pm, "J. Clifford Dyer" wrote: > On Mon, 2009-03-02 at 00:33 -0800, Hussein B wrote: > > On Mar 1, 11:27 pm, "J. Clifford Dyer" wrote: > > > On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > > Hey, > > > > > I'm

Re: Characters aren't displayed correctly

2009-03-02 Thread J. Clifford Dyer
On Mon, 2009-03-02 at 00:33 -0800, Hussein B wrote: > On Mar 1, 11:27 pm, "J. Clifford Dyer" wrote: > > On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > > Hey, > > > > I'm retrieving records from MySQL database that contains no

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 1, 11:27 pm, "J. Clifford Dyer" wrote: > On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > Hey, > > > I'm retrieving records from MySQL database that contains non english > > > characters. > > > Then I create a String that co

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 1, 4:51 pm, Philip Semanchuk wrote: > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > Hey, > > I'm retrieving records from MySQL database that contains non english > > characters. > > Then I create a String that contains HTML markup and column values > > from the previous result set. > >

Re: Characters aren't displayed correctly

2009-03-01 Thread J. Clifford Dyer
On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > Hey, > > I'm retrieving records from MySQL database that contains non english > > characters. > > Then I create a String that contains HTML markup and column values > > from the previous

Re: Characters aren't displayed correctly

2009-03-01 Thread Philip Semanchuk
On Mar 1, 2009, at 8:31 AM, Hussein B wrote: Hey, I'm retrieving records from MySQL database that contains non english characters. Then I create a String that contains HTML markup and column values from the previous result set. + markup = u'''.''' for row in rows: markup = markup +

Characters aren't displayed correctly

2009-03-01 Thread Hussein B
Hey, I'm retrieving records from MySQL database that contains non english characters. Then I create a String that contains HTML markup and column values from the previous result set. + markup = u'''.''' for row in rows: markup = markup + '' + row['id'] markup = markup + ' + Then I'