Hi
sources in codepage 1251
REQUEST HB_CODEPAGE_RU1251
INIT PROCEDURE ALX_INIT ()
LOCAL lang: = QTextCodec (): new ()
lang: setCodecForCStrings (lang: codecForName_1 ( "Windows-1251"))
HB_SETCODEPAGE ( "RU1251")
RETURN
National symbols in the string:
For example, QlineEdit
If you
Unicode handling all across Harbour is probably the last missing
big core/compiler feature which is needed to level our project
to Python/Java and the like.
IMO a very important one.
Maybe we can make use of some existing Unicode conversion libs
(like iconv) to avoid replicating such logic insid
Hi
Til now I had a few cases where I needed it.
For example a string of html encoded in utf8.
Maybe it can be solved with -utf8 switch.
best regards,
Franček
Przemyslaw Czerpak-2 wrote:
>
> On Wed, 09 Sep 2009, Franček Prijatelj wrote:
>
> Hi,
>
>> I think Harbour compiler should suppo
On Wed, 09 Sep 2009, Franček Prijatelj wrote:
Hi,
> I think Harbour compiler should support BOM in .prg and include files.
> Tell me ,if there is a big problem to conditionaly skip first tree bytes.
> Every modern editor supports it.
> Anyhow we are in Unicode age.
It's not a problem with file s
Hi Przemek
I think Harbour compiler should support BOM in .prg and include files.
Tell me ,if there is a big problem to conditionaly skip first tree bytes.
Every modern editor supports it.
Anyhow we are in Unicode age.
Sorry if my comment is out of the main thread.
Brgs
Franček
--
View this m
On Wed, 09 Sep 2009, Alexandr Okhotnikov wrote:
Hi,
> Function working with files a lot (several dozen) and each must write
> a wrapper, given codepage each platform and each locale? Nuance:
No, you haven't.
You wrote that you cannot open existing files with national
characters what is not true
2009/9/8 Przemyslaw Czerpak :
> On Tue, 08 Sep 2009, Alexandr Okhotnikov wrote:
>
> Who's forbidden you to use hb_strtoutf8() function?
>
> proc main()
> local cFile
> request hb_codepage_PLISO
> set( _SET_CODEPAGE, "PLISO" )
> cFile := "b��dz�cy-���w"
> memowrit( cFile,
On Tue, 08 Sep 2009, Alexandr Okhotnikov wrote:
Hi,
> It's not about application portability, I just can not open existing
> files with national characters. For example, the user's home directory
> is the analogue of "Pictures" - "Рисунки" (in Russian)
Who's forbidden you to use hb_strtoutf8() f
Hi
It's not about application portability, I just can not open existing
files with national characters. For example, the user's home directory
is the analogue of "Pictures" - "Рисунки" (in Russian)
2009/9/8 Franček Prijatelj :
>
> Hi Alexandr
>
> Yes this is another solution.
> If we want to be p
On Tue, 08 Sep 2009, Szak�ts Viktor wrote:
Hi,
> Actually, Harbour has the basics for such filename conversion
> support, but internally UTF-8 isn't yet supported in these
> conversions yet. Same goes for terminal output f.e..
Terminal output depends on used GTs. GTTRM and GTSLN supports
utf8 mo
Actually, Harbour has the basics for such filename conversion
support, but internally UTF-8 isn't yet supported in these
conversions yet. Same goes for terminal output f.e..
Brgds,
Viktor
On 2009.09.08., at 11:50, Franček Prijatelj wrote:
Hi Alexandr
Yes this is another solution.
If we want
Hi Alexandr
Yes this is another solution.
If we want to be portable we shuldn't use
spaces and national characters in file names.
BRGS
Franček
Alexandr Okhotnikov wrote:
>
> Hi
>
> example: (for Russian, all *.prg in codepage 1251)
>
> INIT PROCEDURE Qt_Start()
> LOCAL lang
> qt_q
Hi
example: (for Russian, all *.prg in codepage 1251)
INIT PROCEDURE Qt_Start()
LOCAL lang
qt_qapplication()
lang := QTextCodec():new()
lang:setCodecForCStrings( lang:codecForName_1("Windows-1251") )
HB_SETCODEPAGE( "RU1251" )
RETURN
All messages are displayed correctly in
Hi Pritpal
Obviously we need Qstring implementation (not nedded for begining).
Instead of using char* we have to use QString and its methods.
By default Qstring uses "fromAscii()" method on char* assignement.
You should change in hbqt.h (for begining)
#define hbqt_par_QString( n )
Hi
Thanks for your quick answer.
I just started reading "Internationalization with Qt"
and I hope to have solution in few days.
Regards
Franček Prijatelj
Pritpal Bedi wrote:
>
> Hi
>
>
> Franček Prijatelj wrote:
>>
>> Is there a function equivalent of HB_SetCodePage("SLWIN") in HbQt.
>>
Hi
Franček Prijatelj wrote:
>
> Is there a function equivalent of HB_SetCodePage("SLWIN") in HbQt.
> I would like to use cp1250 tekst on buttons:
>
> oBtn := QPushButton():new( QT_PTROF( oWnd ) )
> oBtn:setText( "Push Button čČšŠžŽ" )
>
This is still a gray area for me.
Infact I ha
Hi Pritpal
Is there a function equivalent of HB_SetCodePage("SLWIN") in HbQt.
I would like to use cp1250 tekst on buttons:
oBtn := QPushButton():new( QT_PTROF( oWnd ) )
oBtn:setText( "Push Button čČšŠžŽ" )
BRGS
Franček
<>___
Harbour mailing l
17 matches
Mail list logo