Search found 971 matches

by jj2007
Jan 20, 2019 18:14
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

The URL that I extracted from the (german) homepage of Wikipadia already is percent-encoded ("https://de.wikipedia.org/wiki/Spezial:Zuf%C3%A4llige_Seite"), but libcurl obviously can't handle it. I was about to ask "are you sure?" because it works fine with the Utf8 version of &q...
by jj2007
Jan 20, 2019 8:20
Forum: Community Discussion
Topic: Moderator's Environment and Tools.
Replies: 4
Views: 184

Re: Moderator's Environment and Tools.

Spot on, Richard! I wonder if there is a technical obstacle to implementing your suggestions?
by jj2007
Jan 19, 2019 10:30
Forum: Windows
Topic: Can't we use SHELL32 dll like USER32?
Replies: 10
Views: 179

Re: Can't we use SHELL32 dll like USER32?

Not sure of everything that you might have installed and where. In the fbc folder should be sub-folders: ./lib/win32/libshell32.dll.a -- import lib for 32-bit ./lib/win64/libshell32.dll.a -- import lib for 64-bit And fbc should just find them. At the risk of sparking a little war: The weakest point...
by jj2007
Jan 18, 2019 17:16
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

The terminology may be confusing, and dealing with the Utf8-encoded Unicode is certainly not trivial, but it isn't rocket science, either. It just needs to be implemented in FB; this is assembler: Let my$="Добро Пожаловать" ; "Welcome" in Russian PrintLine my$ PrintLine Lower$(my...
by jj2007
Jan 18, 2019 16:35
Forum: Windows
Topic: Can't we use SHELL32 dll like USER32?
Replies: 10
Views: 179

Re: Can't we use SHELL32 dll like USER32?

Your code (the one at the top) builds and runs fine with -gen gcc -Wc -Ofast -s console and gcc version 8.1.0, but it chokes indeed with Gas32 and Gcc64.
by jj2007
Jan 18, 2019 16:29
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

counting_pine wrote:it expects UTF-8 strings rather than multibyte strings. That's why it only accepts zstrings.
What is the difference between a UTF-8 and a multibyte string? (I've read the Spolsky article thoroughly)
by jj2007
Jan 18, 2019 2:55
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

- whether the ä character or %C3%A4 is used in the string My version     pBuffer= FileRead$ ("https://de.wikipedia.org/wiki/Spezial:Zufällige_Seite") definitely uses (tested successfully with Win7-64 and Win10) the ä character in its UTF8 encoding . Under the hood, it's InternetOpenUrl A ...
by jj2007
Jan 17, 2019 3:56
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

grindstone wrote:Same result with firewall off.
Sorry, no idea why it doesn't work for you. Anybody else? The archive is here.
by jj2007
Jan 16, 2019 16:59
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1699

Re: The Birth of BASIC.

Similar story with the Atari ST; much stronger than the competition but Tramiel wanted to get rich quickly; so he failed to invest anything, and Windows won in the end.
by jj2007
Jan 16, 2019 10:32
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

#D-U means that InternetOpenUrlA failed (that's under the hood of FileRead$ ). It might be your firewall, for example. Here (Windows 7-64, Italian version) it works fine, my PC is not so well protected. Now I checked on my Win10 notebook, here is what I get, directly from the zip archive : Pure minu...
by jj2007
Jan 15, 2019 15:17
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1699

Re: The Birth of BASIC.

a well thought out BASIC program with appropriate comments and formatting (such as indenting FOR loops) can be very easy to follow and efficient to boot. 1986: For I%=39 To 600 Step 112 Line I%,0,I%,399 Line I%+81,0,I%+81,399 Next I% Do @Wait_nh I%=Max(1,(My%+16)/32) Td$="01."+Mid$(Str$(I...
by jj2007
Jan 15, 2019 13:39
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1699

Re: The Birth of BASIC.

IMHO, the worst impediments to the original BASIC was the lack of SUB/FUNCTION calls with parameters combined with a lack of variable scope: every variable was global by default Over 30 years ago, GfaBasic on the Atari had all that, including local variables, user-defined types etc; compiling took ...
by jj2007
Jan 15, 2019 12:19
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 19
Views: 404

Re: No german umlauts with libcurl

I've made a quick test with another library, and it works perfectly, both with Umlauts as shown below and with the escapes (-> Source & exe ): Inkey NoTag$(FileRead$("https://de.wikipedia.org/wiki/Spezial:Zufällige_Seite")) So it really seems a libcurl problem. Btw clicking https://de....
by jj2007
Jan 14, 2019 11:56
Forum: Tips and Tricks
Topic: CountInString()
Replies: 16
Views: 450

Re: CountInString()

You can search for "Jesus", too ;-) The question is really what's the purpose of a Count(string, match, options) . The case of "hell" is few matches in a big buffer, the case of "<p>" is lots of matches. Speed-wise, they differ only marginally. What is the real world ap...
by jj2007
Jan 14, 2019 8:14
Forum: Tips and Tricks
Topic: CountInString()
Replies: 16
Views: 450

Re: CountInString()

dodicat wrote:I cannot find 24541 occurrences, tried case insensitive (entered a lcase(string) as the parametrer)
Filename is 10-h.htm, 4,639,250 bytes. Definitely 24541 occurrences (and they are all lowercase <p>).

Go to advanced search