Thanks all,
This was the solution to my problem.
Grtz
Roel
op 19-02-16 07:48, Ivan Kern schreef:
> Hello, i have had the same problem before i used conversion into
> ISO-8859-15.
>
> sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15")
>
>
>
> Ivan
>
>
Hello, i have had the same problem before i used conversion into
ISO-8859-15.
sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15")
Ivan
--
Site24x7 APM Insight: Get Deep Visibility into Application
On 18/02/16 13:59, Roel Touwen wrote:
> Hi All,
>
> I have an application that prints. The problem is that when I want to
> print é it appears as é.
>
> So I think I need a string conversion like Conv$ but wherever I look,
> there are no working samples.
>
> My charset of system and database are
I don't know all the answers to this but If you run the following code it may
help you diagnose the problem: -
Public Sub Form_Open()
Dim siCount As Short
Print "Length of string = " & Len("é")
For siCount = 1 To 2
Print "Character " & Str(siCount) & " - " & Asc(Mid("é", siCount, 1))
Next
Print
The whole printing procedure works fine except for the 'strange'
characters like é ë etc.
As a base I used the printing sample of Gambas3. Now I'm printing to PDF
by providing a filename.
In the draw section I simply use:
Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight)
Grtz
Le 18/02/2016 14:59, Roel Touwen a écrit :
> Hi All,
>
> I have an application that prints. The problem is that when I want to
> print é it appears as é.
>
> So I think I need a string conversion like Conv$ but wherever I look,
> there are no working samples.
>
> My charset of system and database
Hi All,
I have an application that prints. The problem is that when I want to
print é it appears as é.
So I think I need a string conversion like Conv$ but wherever I look,
there are no working samples.
My charset of system and database are UTF8
Who?
Grtz
Roel Touwen
Hi,
I'm looking for a string conversion function for URIs.
It should work like CGI.Encode, but
- don't transform slashes /
- transform spaces not to + but to %20.
Couldn't find anything in Gambas. Maybe a shell command?
Thanks
Matti
Well, after some thoughts, I can answer myself.
I tried this example:
sFilename = /home/username/Meine Bilder/öffentliche Fotos übertragen/015 das
Schönste.jpg
i = 1
WHILE i Len(sFilename)
sChar = Mid$(sFilename, i, 1)
IF Asc(sChar) 122 THEN
sFilename = Left$(sFilename, i
Hey Matti,
you might want to roll a string conversion function of your own.
The Replace function might be of particular use to you.
You can read about it over here
http://www.gambasdoc.org/help/lang/replace
and you can also find all the other string related functions over here
10 matches
Mail list logo