Search found 518 matches: utf8

Searched query: utf8

by cmsoft
Thu Jan 30, 2025 11:24 am
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo Insertar registros a na tabla?
Replies: 17
Views: 30110

Re: Cómo Insertar registros a na tabla?

... NULL AUTO_INCREMENT, ";
+"`nombre` VARCHAR(50) NOT NULL,";
+"`orden` INT(10) NOT NULL,";
+"PRIMARY KEY (`id`)) ENGINE=INNODB DEFAULT CHARSET=utf8")
//Inserto lo basico
oCn:Execute("INSERT INTO armando (orden,nombre) VALUES (1,'Manzana'),(2, 'Pera'),(3, 'Naranja'),(4, 'Mandarina')")
oRs ...
by cnavarro
Wed Jan 22, 2025 5:53 pm
Forum: FiveWin for Harbour/xHarbour
Topic: multi-column popup menu
Replies: 13
Views: 31355

Re: multi-column popup menu

... function Main()

local oMenu

DEFINE FONT oFontMnu NAME "Segoe UI Symbol" SIZE 0, -14

DbUseArea( .T., , "Customer.dbf" )
DbUseArea( .T., , "utf8_01.dbf" )
DbUseArea( .T., , "states.dbf" )
//DbGoto( 3 )
DEFINE WINDOW oWnd TITLE "Test Menu From Databases and Arrays: " MENU MenuDatabase ...
by karinha
Tue Jan 14, 2025 6:13 pm
Forum: FiveWin para Harbour/xHarbour
Topic: STRUCTURE / ENDSTRUCTURE EN HARBOUR?
Replies: 5
Views: 6808

Re: STRUCTURE / ENDSTRUCTURE EN HARBOUR?

... IIF(Empty(oTag),'',oTag:cData) //HtmlToOem(oTag:cData))

// oCep:cNome := HtmlToOeM(oCep:cNome)
// oCep:cNome := HB_Translate(oCep:cNome,"UTF8","PT850")

oCep:cNome := FW_UTF8PADCHAR(oCep:cNome,60)
oCep:cNome := Upper(oCep:cNome)

If At("AVENIDA",oCep:cNome) > 0

oCep:cTipo := "AV ...
by dutch
Fri Dec 06, 2024 2:35 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

... be displayed as สก
But the FWH version you have is displaying a totally different character. ʡ
This is because FWH is not recognizing สก as two individual single byte characters but as a 2-byte UTF8 character ʡ

We are in the process of resolving the issue, with kind support from both of you.
by nageswaragunupudi
Mon Dec 02, 2024 4:00 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

... be displayed as สก
But the FWH version you have is displaying a totally different character. ʡ
This is because FWH is not recognizing สก as two individual single byte characters but as a 2-byte UTF8 character ʡ

We are in the process of resolving the issue, with kind support from both of you.
by dutch
Mon Dec 02, 2024 2:01 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

... which character in Thai) ?

There is a real problem.
This is arising because the above 2 byte character combinations are being treated as a single UTF8 character but not as 2 ANSI characters
Please check this Harbour function
c := chr(202)+chr(161) // check other combinations also ...
by nageswaragunupudi
Sun Dec 01, 2024 5:23 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

There is a real problem.
This is arising because the above 2 byte character combinations are being treated as a single UTF8 character but not as 2 ANSI characters
Please check this Harbour function
c := chr(202)+chr(161) // check other combinations also? hb_strisutf8( c &#41 ...
by Surasak
Sun Dec 01, 2024 2:55 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

... variable = nil at first

#include "FiveWin.ch"
function Main
local oWnd
public cFont0,oFont0,cName,oName
FW_SetUnicode( .T. )
HB_SETCODEPAGE( "UTF8" )
cFont0="Tahoma"

*cName = space(40) // FW24 Version If Without This Line, Variable cName with = nil
// I will cannot Enter THAI character ...
by Surasak
Sat Nov 30, 2024 7:52 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

Dear nageswaragunupudi,

for my regular ANSI Program
? GetOEMCP(), GetACP(), HB_CDPSELECT() = 874,874,EN

for my Unicode Program
? GetOEMCP(), GetACP(), HB_CDPSELECT() = 874,874,UTF8

Thank you very much for your support
in case you want to contract direst, my e-mail is surasak@asic-net.com
by Surasak
Sat Nov 30, 2024 5:42 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

... when run the program it take 5 to10 seconds before program start

- When I try to use unicode by function FW_SetUnicode( .T. ) + HB_SETCODEPAGE( "UTF8" ) and change my code to UTF8,
I found class MENU display incorrect , I test by use function GetSysFont(), It work with function msginfo() but ...
by nageswaragunupudi
Sat Nov 30, 2024 3:37 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

It may be problem from unicode character
Yes, you are right.
These combinations are being treated as 2-byte utf8 characters.

We are looking into how to resolve the issue for you.
Please give us a little time.
by nageswaragunupudi
Fri Nov 29, 2024 9:25 am
Forum: FiveWin for Harbour/xHarbour
Topic: Incorrect Font Display
Replies: 17
Views: 6333

Re: Incorrect Font Display

Also each Thai UTF8 character is represented by 3 bytes. Not 2 bytes
by Marc Venken
Thu Nov 28, 2024 11:10 am
Forum: FiveWin for Harbour/xHarbour
Topic: change special chars in memo for use with Json
Replies: 7
Views: 1756

Re: change special chars in memo for use with Json

Otto,

This code will change data to UTF8-coded data, but will not change a chr(10) to something else as far as I read.
by nageswaragunupudi
Sun Nov 03, 2024 4:30 am
Forum: FiveWin for Harbour/xHarbour
Topic: Copy file by mask
Replies: 24
Views: 2850

Re: Copy file by mask

... 1) MyOwnFile.txt (simple English)
2) MyÄÅÆFile.txt (WU ANSI codepage 1252)
3) MyДЕЖFile.txt (Russian ANSI codepage 1251)
4) MyమనవFile.txt (UTF8 codepage of any Unicode language, in this case, Telugu)

I propose 2 approaches to copy these 4 matching files into the destination folder ...
by Natter
Sat Nov 02, 2024 4:34 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Copy file by mask
Replies: 24
Views: 2850

Re: Copy file by mask

https://cloud.mail.ru/public/p3ty/xhkxgTcXa

2 years ago I already solved this problem. The general solution was to change the encoding from UTF8 to ANSI.
However, Windows somehow solves this problem. If you change the title in Explorer, everything works fine.

The header of the attached file ...