E-Mail UTF8 problem?

Re: E-Mail UTF8 problem?

Postby cnavarro » Wed Jul 21, 2021 6:46 am

Dear Dutch, I have tested your code
You just need to add at the beginning
Code: Select all  Expand view

HB_SETCODEPAGE( "UTF8" )
 

There's no need
Code: Select all  Expand view

//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
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: E-Mail UTF8 problem?

Postby richard-service » Wed Jul 21, 2021 2:38 pm

cnavarro wrote:Dear Dutch, I have tested your code
You just need to add at the beginning
Code: Select all  Expand view

HB_SETCODEPAGE( "UTF8" )
 

There's no need
Code: Select all  Expand view

//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 v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 772
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: E-Mail UTF8 problem?

Postby cnavarro » Wed Jul 21, 2021 6:01 pm

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
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: E-Mail UTF8 problem?

Postby richard-service » Thu Jul 22, 2021 4:37 am

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 v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 772
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: E-Mail UTF8 problem?

Postby dutch » Sat Jul 24, 2021 9:08 am

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 view

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 view

HB_SETCODEPAGE( "UTF8" )
 

There's no need
Code: Select all  Expand view

//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
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Postby cnavarro » Sat Jul 24, 2021 10:11 am

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
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: E-Mail UTF8 problem?

Postby dutch » Sat Jul 24, 2021 12:10 pm

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
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Postby cnavarro » Sat Jul 24, 2021 7:58 pm

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
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: E-Mail UTF8 problem?

Postby dutch » Sun Jul 25, 2021 1:28 am

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: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Postby dutch » Sun Jul 25, 2021 2:05 pm

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
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Postby cnavarro » Fri Jul 30, 2021 9:27 am

Dear Dutch
Please try with this
Code: Select all  Expand view

: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
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: E-Mail UTF8 problem?

Postby dutch » Fri Jul 30, 2021 10:54 am

Dear cnavarro,

It doesn't work. It's still unreadable.
cnavarro wrote:Dear Dutch
Please try with this
Code: Select all  Expand view

: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
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: E-Mail UTF8 problem?

Postby cnavarro » Fri Jul 30, 2021 11:00 am

There are other possibilities that you will have to try
Code: Select all  Expand view

:HTMLBody := hb_strtoutf8( hb_ansitooem( cHtml ) )
 

Code: Select all  Expand view

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

Code: Select all  Expand view

: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
cnavarro
 
Posts: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: E-Mail UTF8 problem?

Postby dutch » Sat Jul 31, 2021 11:02 am

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 view

:HTMLBody := hb_strtoutf8( hb_ansitooem( cHtml ) )
 

Code: Select all  Expand view

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

Code: Select all  Expand view

: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)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 31 guests