Search found 172 matches

by AlanFoo
Wed Sep 28, 2016 1:16 am
Forum: Coding Questions
Topic: How to create Chinese named online folder and file
Replies: 15
Views: 5130

Re: How to create Chinese named online folder and file

Possibly the method to get FtpCreateDirectoryW to work is to convert the folder name with MultiByteToWideChar_

Edit: No, that doesn't sound right. As I understand it, WideChar is unicode (UTF16).

Tried changing the prototype thus:
Prototype.i FtpCreateDirectoryW(hConnect.i, sDirName.p-unicode ...
by AlanFoo
Tue Sep 27, 2016 11:33 am
Forum: Coding Questions
Topic: How to create Chinese named online folder and file
Replies: 15
Views: 5130

Re: How to create Chinese named online folder and file

InitNetwork()

If OpenFTP(0, url, user, pass, 21)

CreateFTPDirectory(0, "报 报 报")
CloseFTP(0)
Else
MessageRequester("Owch", "FTP connection failed")
EndIf

Tried the above snippet and got the same result as you on my server. Unless FileZilla does something clever, such as introducing it's own ...
by AlanFoo
Tue Sep 27, 2016 2:33 am
Forum: Coding Questions
Topic: How to create Chinese named online folder and file
Replies: 15
Views: 5130

Re: How to create Chinese named online folder and file

Just wonder how others configure it to be able to upload and create folders with names in their mother tongue instead of romanised English characters.
Well in fact, in most cases they actually do use English. It's the same with email addresses - the standards and protocols support Unicode ...
by AlanFoo
Sun Sep 25, 2016 5:26 am
Forum: Coding Questions
Topic: How to create Chinese named online folder and file
Replies: 15
Views: 5130

Re: How to create Chinese named online folder and file

you could also use a packet sniffer like Wireshark to ensure they're being sent ok

Actually I am sure it is not sent okay as it is intended to be.. to be Chinese/English/Arabic names as the original file from our computer.
it actually is unable to send the utf8 characters over to the server . It ...
by AlanFoo
Sun Sep 25, 2016 1:15 am
Forum: Coding Questions
Topic: How to create Chinese named online folder and file
Replies: 15
Views: 5130

Re: How to create Chinese named online folder and file

the folder created online at my server came up with '???' where ? replaces each Chinese character.
How did you see that? If via another desktop app, then that needs to support Unicode - and Unicode font. Or using an online 'Control Panel' provided by your Web Host? Check that they support Unicode ...
by AlanFoo
Sat Sep 24, 2016 11:29 am
Forum: Coding Questions
Topic: How to create Chinese named online folder and file
Replies: 15
Views: 5130

How to create Chinese named online folder and file

Hi experts,

I need some help .

I tried to create a chinese named folder at my server with the following command ..
CreateFTPDirectory(6, "direct/"+keywordname$) where keywordname$ is a string having Chinese charaters e.g. test 报 报 报

However the folder created online at my server came up with ...
by AlanFoo
Mon Feb 22, 2016 7:32 pm
Forum: Coding Questions
Topic: Program not running if mouse not over the windows page
Replies: 2
Views: 836

Re: Program not running if mouse not over the windows page

Okay .. I solved it. Just put say 10 to WaitWindowEvent(10)
Found my mistake
works fine now
by AlanFoo
Mon Feb 22, 2016 6:53 pm
Forum: Coding Questions
Topic: Program not running if mouse not over the windows page
Replies: 2
Views: 836

Program not running if mouse not over the windows page

Hello,
Hope someone can help me out.

I have a program running on purebasic 4.6 that is supposed to run continuously without attending to it.. and checks
for presence of certain files in the server to do a job .

as usual i used "Repeat " syntax.
and Event = WaitWindowEvent() etc
so that an if exist ...
by AlanFoo
Sun Jan 25, 2015 4:05 pm
Forum: Coding Questions
Topic: Webgadget hyperlinks problems..
Replies: 5
Views: 2691

Re: Webgadget hyperlinks problems..

Hi,

Thanks for response.

I have found the fault.

After testing it the 5.3 and then on the 4.61 , I discovered that the fault lies with the IE that I am having with my development computer.

When PB opens a new window with a windows browser , it chooses the IE to display the new window not the ...
by AlanFoo
Sun Jan 25, 2015 2:42 pm
Forum: Coding Questions
Topic: Webgadget hyperlinks problems..
Replies: 5
Views: 2691

Re: Webgadget hyperlinks problems..

Hi


Text$ = "<a href=http://yahoo.com target=_blank >New Browser</a>"
OpenWindow(0, 0, 0, 400,300, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
WebGadget(0, 10, 10, 300, 65, "")
SetGadgetItemText(0, #PB_Web_HtmlCode, Text$)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow ...
by AlanFoo
Sun Jan 25, 2015 1:48 pm
Forum: Coding Questions
Topic: Webgadget hyperlinks problems..
Replies: 5
Views: 2691

Webgadget hyperlinks problems..

Hi hope someone can help me on this.

I use webgadget for an app that browses the website with hyperlinks.

I notice that if the hyperlink is to create a separate window e.g. using "<a target="_blank" href="http://yahoo.com" </a>
it would not work. But if I take out "target="_blank" it works.

Is ...
by AlanFoo
Thu May 22, 2014 9:25 am
Forum: Coding Questions
Topic: How to make an image hyperlinked?
Replies: 2
Views: 1517

Re: How to make an image hyperlinked?

Hi Ti994A,

Thanks. That is what I am looking for.

regards
Alan
by AlanFoo
Thu May 22, 2014 3:56 am
Forum: Coding Questions
Topic: How to make an image hyperlinked?
Replies: 2
Views: 1517

How to make an image hyperlinked?

Hi hope you can help.

I need to be able to click an hyperlinked image?

what is the code to make the imagegadget hyperlinked?

Thanks for your help.

REgards
Alan
by AlanFoo
Fri Dec 20, 2013 8:00 am
Forum: Coding Questions
Topic: about percent hex...
Replies: 11
Views: 1631

Re: about percent hex...

Just for the record I copy my post here since the OP did a double post
and I seemed to be the only one who didn't post in this version.

@Moderators: please delete the duplicate topic, thank you.

PB gives you the UTF-16 encoding but in the URL it is encoded as UTF-8.
The following code ...
by AlanFoo
Fri Dec 20, 2013 7:58 am
Forum: Coding Questions
Topic: about percent hex...
Replies: 11
Views: 1631

Re: about percent hex...

I will need to know how to convert to ascii directly from utf8 "%E4%B8%AD" percent hex to dec.
You will have to check with some more codes but I think this will do
Procedure.u PercentHexToDec(PercentHex.s)
Protected result.u, l.l = Val("$" + RemoveString(PercentHex, "%"))
If l & $FFFFFF80 = 0 ...