Search found 281 matches: setunicode

Return to advanced search

Re: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()

hi, Sign are from SQL-Server, which is configure as UTF-8, are paint into hDC "as it is" and display UTF-8 "same" Data display in XBROWSER show Sign "right" as DEWIN so "somewhere" must be a "translate" ... but "where" :?: --- i have try to...
by Jimmy
Thu Jul 06, 2023 8:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()
Replies: 2
Views: 305

Re: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()

FWH never used hb_translate() anywhere.
It all depends on what function are you using to output text to hDC in your TGrid class.
Please compare with xbrowse.
by nageswaragunupudi
Thu Jul 06, 2023 9:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()
Replies: 2
Views: 305

UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()

hi, i use   hb_LangSelect( cLangCode )   hb_cdpSelect( cCodepage ) to display DIRECTORY() in TGrid() now i try to show SQL-Table in TGrid() but FIELD Type "C" with "Umlaute" does show not correct :( i try   hb_cdpSelect( "UTF8" ) but still not co...
by Jimmy
Thu Jul 06, 2023 4:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()
Replies: 2
Views: 305

Re: FW_SetUnicode( .T. ) 2-Byte characters

yes, this issue (bug) is very confusing. To better understand what is happening, I have adjusted the sample again: function Main()   local oDlg   local oGet   local oEdit   local oMulti   local oMemo   local cVar1 := "üäö"   local cVar2 := "üäö"   local cVar3 := "üä...
by frose
Thu Jun 29, 2023 7:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

hi,

i have use your last Sample

when start and "direct" press Check Button you are right

but try this :
after start press TAB until reach Button and press SPACE Bar
now in Msginfo() all "Umlaute" are ok

i do not know what is going on but it "seems" GET must have Focus
by Jimmy
Wed Jun 28, 2023 11:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

same Prob here with unicode I want move to Harbour from xHarbour My getfield blocks if itype "Müller" t stops at "Mü" U.diemer using ads Server 12.2 cannot confirm this behavior for Harbour. Uwe, try example from this thread Can confirm this behavior for Harbour. When opened in ...
by frose
Tue Jun 27, 2023 6:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

The following images demonstrate the change of Unicode Ä (0xC4) to UTF-8 Ä (0xC3 84) via Hex codes: Before change, the new hex code is already in the MemoEdit: https://i.postimg.cc/jSC5QS5W/2023-06-27-14-11-57.jpg Due to the Unicode code 0xC4 the sorting is not ok. MsgInfo() to cont...
by frose
Tue Jun 27, 2023 12:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

When editing 2-Byte chars they are converted to there Unicode equivalent, NOT to UTF-8 Example - https://www.charset.org/utf-8 : Dec      Hex   UTF-8 Char  Unicode description---------------------------------------------------------------------------------------216   U+00D8   C3 98   Ø ...
by frose
Tue Jun 27, 2023 6:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

Hello Jimmy,

thank you for the helpful information.
But in the context of this thread, the CP settings do not change the misinterpretation of these 2-byte characters.

Greetings from Ostwestfalen (Rietberg) to Hamburg

Frank
by frose
Tue Jun 27, 2023 4:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

hi, as i can say you need to set Codepage for "Controls" AND for DBF i do set in MAIN LOCAL cLangCode    := "DE"LOCAL cCodepage    := "DEWIN"   FW_SetUnicode( .T. )                                               // use UniCode   hb_LangSelect( cLangCode )...
by Jimmy
Mon Jun 26, 2023 9:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

karinha,

nothing changed, the chars ÄÜÖß are misinterpreted:
Image
by frose
Mon Jun 26, 2023 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

// C:\FWH..\SAMPLES\FROSE2UT.PRG#include "FiveWin.ch"REQUEST HB_LANG_PTREQUEST HB_CODEPAGE_PT850// REQUEST HB_CODEPAGE_UTF8 ???? Harbour? No xHarbour.// REQUEST HB_CODEPAGE_PTISO// REQUEST HB_CODEPAGE_UTF8EXFUNCTION Main()   LOCAL oDlg   LOCAL oEdit   ...
by karinha
Mon Jun 26, 2023 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

Meanwhile you can help me by 1. Let me know if the multiline Get @ r,c, GET ctext MEMO/TEXT .. is working perfectly with German lang when FW_SetUnicode() is .T. ? TEdit() does not work correctly yet. Something happens with <cVar1> and <cVar2>: FUNCTION Main()   LOCAL oDlg   LOCA...
by frose
Mon Jun 26, 2023 9:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

Uwe.Diemer wrote:same Prob here with unicode

I want move to Harbour from xHarbour

My getfield blocks if itype "Müller" t stops at "Mü"

U.diemer using ads Server 12.2

cannot confirm this behavior for Harbour.
Uwe, try example from this thread
by frose
Sat Jun 24, 2023 6:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195

Re: FW_SetUnicode( .T. ) 2-Byte characters

Uwe.Diemer wrote:same Prob here with unicode

I want move to Harbour from xHarbour

My getfield blocks if itype "Müller" t stops at "Mü"

U.diemer using ads Server 12.2


Working well with xHarbour but not with Harbour?
by nageswaragunupudi
Fri Jun 23, 2023 4:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2195
PreviousNext

Return to advanced search