HMG 3.1.2

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: HMG 3.1.2 (Test)

Post by dhaine_adp »

Hi,

After rebuilding my app using HMG 3.1.2 the windows title becomes like the attached file but it should read as "Nuestra Señora". The character "ñ" is substituted. There is no extra processing done on the win title, just a simple assignment only. e.g. wMainForm.Title := "Nuestra Señora".

Is this from harbour or from HMG? It looks like that it becomes unicode. Is there any switch or options to force ANSI on the apps or shall I fallback to HMG 3.0.46 in this regards?

I use to build the app using HB-IDE and the -w2 option mentioned in one of the Unicode threads can it be set through HB-IDE or I needed a customized batch file to do that?

Regards & TIA,

Danny
Attachments
unicode.JPG
unicode.JPG (9.83 KiB) Viewed 5637 times
Regards,

Danny
Manila, Philippines
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG 3.1.2 (Test)

Post by danielmaximiliano »

Hola Claudio y Rathi :

descargue la nueva version al leer el comentario de dhaine_adp me puse hacer un pequeño ejemplo, trabajo con Crimson editor
ajusto 'Document', 'Encoding Type = UTF8 w/o BOM' y escribo el Main.Prg

con el IDE creo el formulario que contiene un text y un boton.
este boton cambia el titulo del formulario, caption del boton y valor del label .
al hacer click la funcion cambia estas propiedades y se muestra correctamente las 'ñ?

Translate google

Hello Claudio and Rathi:

Download the new version to read the comments of dhaine_adp do I set a small example, work with Crimson editor
I set 'Document', 'Encoding Type = UTF8 w / o BOM' and write the Main.prg

with IDE created the form that contains a text and a button.
This button changes the title of the form, the button caption label and value.
Clicking these properties changes the function and display correctly the 'ñ'

Code: Select all

Function ChangeTitle()
Setproperty( 'Unicode' , 'Title'   , 'Felicidades por su cumpleaños' )
Setproperty( 'Unicode' , 'Button_1', 'Caption' , 'Años'              )
Setproperty( 'Unicode' , 'Label_1' , 'Value'   , 'Feliz Cumpleaños'  )

Return
Titlo de felicidades_2013-04-04_21-52-09.png
Titlo de felicidades_2013-04-04_21-52-09.png (37.06 KiB) Viewed 5629 times
Felicidades por su cumpleaños_2013-04-04_21-58-23.png
Felicidades por su cumpleaños_2013-04-04_21-58-23.png (32.19 KiB) Viewed 5629 times
Unicode test.rar
(1.18 KiB) Downloaded 310 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: HMG 3.1.2 (Test)

Post by dhaine_adp »

Hi,

Here's from HB source stable build (<Hb Dir>\doc\en\lang.txt)
* Language Codepage <cNewLang>
*
* Bulgarian 866 BG866
* Bulgarian ISO-8859-5 BGISO
* Bulgarian MIK BGMIK
* Bulgarian Windows-1251 BGWIN
* Croatian 437 HR437
* Croatian 852 HR852
* Croatian Windows-1250 HR1250
* Czech 852 CS852
* Czech ISO-8859-2 CSISO
* Czech KAM CSKAM
* Czech Windoes-1250 CSWIN
* English 437 EN
* French 850 FR
* German 850 DE
* German ISO-8859-1 DEWIN
* Greek 737 EL
* Greek Windows-1253 ELWIN
* Hungarian (ntxhu852) 852 HU852
* Hungarian (sixhu852) 852 HU852S
* Hungarian (ntxhu852) ISO-8859-2 HUISO
* Hungarian (sixhu852) ISO-8859-2 HUISOS
* Hungarian (ntxhu852) Windows-1250 HUWIN
* Hungarian (sixhu852) Windows-1250 HUWINS
* Italian 437 IT437
* Italian 850 IT850
* Italian ISO-8859-1b ITISB
* Italian ISO-8859-1 ITISO
* Lithuanian Windows-1257 LT
* Polish 852 PL852
* Polish ISO-8859-2 PLISO
* Polish Mazowia PLMAZ
* Polish Windows-1250 PLWIN
* Portuguese 850 PT850
* Portuguese ISO-8859-1 PTISO
* Russian 866 RU866
* Russian KOI-8 RUKOI8
* Russian Windows-1251 RU1251
* Serbian Windows-1251 SRWIN
* Slovak 852 SK852
* Slovak ISO-8859-2 SKISO
* Slovak Kamenicky SKKAM
* Slovak Windows-1250 SKWIN
* Slovenian 437 SL437
* Slovenian 852 SL852
* Slovenian ISO-8859-2 SLISO
* Slovenian Windows-1250 SLWIN
* Spanish 850 ES
* Spanish ISO-8859-1 ESWIN
* Spanish Modern ISO-8859-1 ESMWIN
* Swedish 850 SV850
* Swedish (Clipper) 437 SVCLIP
* Swedish ISO-8859-1 SVWIN
* Turkish 857 TR857
* Turkish Windows-1254 TRWIN
* Ukrainian 866 UA866
* Ukrainian KOI-8U UAKOI8
* Ukrainian Windows-1251 UA1251
I test it on XP SP2 English. The function HB_cdpSelect() returns UTF8 (it seems it is the default). I tried setting the codepage to ESWIN and ITISO to get ISO-8859-1 char set but it gave error Base/1302 Argument error: HB_CDPSELECT() {perhaps I have to use REQUEST command first but I am not changing the laguage set}. Also I tried it with "EN" but it seems EN is OEM (DOS). Right now I don't have an idea if this problem is from Harbour or HMG but a quick test using the code below results as follows:

Code: Select all

include <hmg.ch>

function main
 msginfo( hb_cdpselect(), "test" )
return nil
// result UTF8
and this code produces an error:

Code: Select all

#include <hmg.ch>
function main
  ? hb_cdpselect()
  return nil
hbmk2: Warning: Non-portable output filename: '-otst.exe'. Delete '.exe' extension.
Harbour 3.2.0dev (r1303181903)
Copyright (c) 1999-2013, http://harbour-project.org/

Regards,

Danny
Regards,

Danny
Manila, Philippines
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.1.2 (Test)

Post by Rathinagiri »

Thanks for all the bug reports. We will resolve one by one.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Leopoldo Blancas
Posts: 388
Joined: Wed Nov 21, 2012 7:14 pm
Location: México

Re: HMG 3.1.2 (Test)

Post by Leopoldo Blancas »

Gracias por el trabajo realizado... Siempre estare agradecido.

Polo
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: HMG 3.1.2 (Test)

Post by quartz565 »

Many thanks Rathinagiri and Dr. Claudio Soto for this new version !!

Nikos
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: HMG 3.1.2 (Test)

Post by dhaine_adp »

Hi Rathi and all,

I've already resolved my problem. The problem is from my source code editor setting. I switch the encoding type to UTF-8 w/o BOM, then from windows charmap I set the encoding type to "Unicode" and copy paste the character "ñ" to the source on Crimson Editor to overwrite the old encoding. Now it's working fine.

Well sometimes common sense is not so common. :lol: because I used ASCII encoding on Crimson Editor before and this version is UTF-8. :oops: See attached:

Moving app to UTF-8 is a good start, but I don't know yet if it would affect the dbf file encoding. Now, how can we detect the encoding type of character streams assuming we have no idea?

Regards,

Danny
Attachments
unicode.JPG
unicode.JPG (7.1 KiB) Viewed 5527 times
Regards,

Danny
Manila, Philippines
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.1.2 (Test)

Post by srvet_claudio »

Steed wrote:Frist at all,I have to say many thanks.

Bud I have to report that the issue with the textbox control remained

Regards,

Ed
Hi Ed.
Can you post a small example and describe the bug ?
Best regards,
Claudio
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 3.1.2 (Test)

Post by srvet_claudio »

fouednoomen wrote:BROWSE is not working in this hmg version. same than 3.1.1
It displays empty table always.
Problem with grid ,we can't write in grid
Regards

foued
Hi Foued.
Can you post a small example and describe the bug ?
I tested and work fine (viewtopic.php?p=22962#p22962).
Best regards,
Claudio.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG 3.1.2 (Test)

Post by mol »

I've found some problems with hmg 3.1.2 and context and main menu:
When you open one modal window from another, error occures:

Code: Select all

Main Menu already defined in Window: OknoHistoriaKontrahenta. Program Terminated
Called from _DEFINEMAINMENU(61) 
or

Code: Select all

Error BASE/1070 Illegal argument: ==
Called from OBSLBLEDU(952) 
Called from (b)MAIN(447) 
Called from ISCONTEXTMENUDEFINED(638) 
Called from _DEFINECONTEXTMENU(496) 
Called from SZYBKATABELATOWAROW(33) 
Besides - context menu is not defined in line 33:
SZYBKATABELATOWAROW(33)
but, in FMG file loaded by function SZYBKATABELATOWAROW()
(piece of FMG file below)

Code: Select all


    DEFINE CONTEXT MENU
        MENUITEM "Popraw Towar" ACTION PoprawDodajTowar(.f.) NAME PoprawDodajTowar
        MENUITEM "Drukuj etykietę na regał" ACTION ZaznaczTowarDoDrukuEtykiety(0,towary->towar, cEtykietaNaRegal,1) NAME ZaznaczTowarDoDrukuEtykiety
        MENUITEM "Drukuj etykietę na towar" ACTION ZaznaczTowarDoDrukuEtykiety(1,towary->towar, cEtykietaNaTowar,-1,towary->Ilosc) NAME cEtykietaNaRegal
    END MENU

All this code works perfect with hmg 3.0.46
Post Reply