E-Mail UTF8 problem?

User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: E-Mail UTF8 problem?

Post by cnavarro »

Dear Dutch, I have tested your code
You just need to add at the beginning

Code: Select all | Expand


HB_SETCODEPAGE( "UTF8" )
 

There's no need

Code: Select all | Expand


//Fw_SetUnicode( .T. )
 

No additional change is necessary
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
richard-service
Posts: 807
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 1 time
Contact:

Re: E-Mail UTF8 problem?

Post by richard-service »

cnavarro wrote:Dear Dutch, I have tested your code
You just need to add at the beginning

Code: Select all | Expand


HB_SETCODEPAGE( "UTF8" )
 

There's no need

Code: Select all | Expand


//Fw_SetUnicode( .T. )
 

No additional change is necessary


Dear cnavarro,
Yes, same as my set for Harbour.
But use FWH input Unicode word, I think it need to use Fw_SetUnicode(.T.)
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: E-Mail UTF8 problem?

Post by cnavarro »

Dear Richard
I have not needed to use it, but perhaps because of the language that I am using by default on the computer, I have to use Fw_Unicode (.T.) or not be necessary. Is simply try
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
richard-service
Posts: 807
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 1 time
Contact:

Re: E-Mail UTF8 problem?

Post by richard-service »

cnavarro wrote:Dear Richard
I have not needed to use it, but perhaps because of the language that I am using by default on the computer, I have to use Fw_Unicode (.T.) or not be necessary. Is simply try


OK. I will to try Email system for it.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Post by dutch »

Dear cnavarro,

I add as your suggestion as below but no success. Cloud you send me the code that you try and success please?
Image
Thank you in advance.

Code: Select all | Expand


FW_SetUnicode( .T. )

MYSQL_TinyIntAsLogical( .T. )

SET EPOCH TO year(date())-90
SET DATE FORMAT TO 'DD/MM/YY'
SET DATE BRITISH

HB_SETCODEPAGE( "UTF8" )



cnavarro wrote:Dear Dutch, I have tested your code
You just need to add at the beginning

Code: Select all | Expand


HB_SETCODEPAGE( "UTF8" )
 

There's no need

Code: Select all | Expand


//Fw_SetUnicode( .T. )
 

No additional change is necessary
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: E-Mail UTF8 problem?

Post by cnavarro »

Dear Dutch
Please try with ( not with Fw_SetUnicode( .T. ) ), and tell me

HB_SETCODEPAGE( "UTF8" )

MYSQL_TinyIntAsLogical( .T. )

SET EPOCH TO year(date())-90
SET DATE FORMAT TO 'DD/MM/YY'
SET DATE BRITISH

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Post by dutch »

Dear cnavarro,

Yes, it works correctly for Email but I the program use Fw_SetUnicode( .T. ). The SAY, Title of Dialog are unreadble, if I remove Fw_SetUnicode( .T. ) in the beginning of the program as picture.
Image
cnavarro wrote:Dear Dutch
Please try with ( not with Fw_SetUnicode( .T. ) ), and tell me

HB_SETCODEPAGE( "UTF8" )

MYSQL_TinyIntAsLogical( .T. )

SET EPOCH TO year(date())-90
SET DATE FORMAT TO 'DD/MM/YY'
SET DATE BRITISH

Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: E-Mail UTF8 problem?

Post by cnavarro »

Dear Dutch
Try disabling Fw_SetUnicode (.F.) when entering the mail send function ( CDO ) and putting Fw_SetUnicode (.T.) right at the end of the function
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Post by dutch »

Dear cnavarro,

Thank you for your suggetion.
cnavarro wrote:Dear Dutch
Try disabling Fw_SetUnicode (.F.) when entering the mail send function ( CDO ) and putting Fw_SetUnicode (.T.) right at the end of the function
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Post by dutch »

Dear cnavarro,

It did not work and strange behavior.
1. FW_SetUnicode( .T. ) at beginning
FW_SetUnicode( .F. )
Send Mail (CDO)
FW_SetUnicode( .T. )
* Mail is not readable *
2. Do not set anything
Send Mail (CDO)
* Mail is readable correctly *
* SAY and Title of Dialog is unreadable *
3. HB_SETCODEPAGE( "UTF8" ) doesn't effect any case.

FW_SetUnicode( .F. ) is not the same result of *Never Call FW_SetUnicode()*

cnavarro wrote:Dear Dutch
Try disabling Fw_SetUnicode (.F.) when entering the mail send function ( CDO ) and putting Fw_SetUnicode (.T.) right at the end of the function
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: E-Mail UTF8 problem?

Post by cnavarro »

Dear Dutch
Please try with this

Code: Select all | Expand


:HTMLBody := hb_StrtoUtf8( cHtml )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Post by dutch »

Dear cnavarro,

It doesn't work. It's still unreadable.
cnavarro wrote:Dear Dutch
Please try with this

Code: Select all | Expand


:HTMLBody := hb_StrtoUtf8( cHtml )
 
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: E-Mail UTF8 problem?

Post by cnavarro »

There are other possibilities that you will have to try

Code: Select all | Expand


:HTMLBody := hb_strtoutf8( hb_ansitooem( cHtml ) )
 

Code: Select all | Expand


:HTMLBody := hb_strtoutf8( cHtml, <your language> )   //  as example: "ESWIN"
 

Code: Select all | Expand


:HTMLBody := hb_strtoutf8( hb_ansitooem( cHtml ), <your language> )   //  as example: "ESWIN"
 

Please try and tell me
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Post by dutch »

Dear cnavarro,

It doesn't work as previous try.
cnavarro wrote:There are other possibilities that you will have to try

Code: Select all | Expand


:HTMLBody := hb_strtoutf8( hb_ansitooem( cHtml ) )
 

Code: Select all | Expand


:HTMLBody := hb_strtoutf8( cHtml, <your language> )   //  as example: "ESWIN"
 

Code: Select all | Expand


:HTMLBody := hb_strtoutf8( hb_ansitooem( cHtml ), <your language> )   //  as example: "ESWIN"
 

Please try and tell me
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Post Reply