What's going on here?

For everything that's not in any way related to PureBasic. General chat etc...
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

What's going on here?

Post by mestnyi »

Code: Select all

func$ = "Window" ; debug Window 1 0

; comment\uncomment
; func$ = "Window" ; debug Window 0 1

Debug ""+func$ +" "+ Bool(func$ = "Window") +" "+ Bool(func$ = "Window")
What's going on here? Why do the same words look different?
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: What's going on here?

Post by Kiffi »

not here.

In both cases: Window 1 1
Hygge
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: What's going on here?

Post by mestnyi »

Kiffi wrote: Thu Mar 06, 2025 12:40 pm not here.

In both cases: Window 1 1
I looked
It's the browser that fixes it.
Can you download and watch the "1.pb" file from here?
https://github.com/mestnyi33/widget
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: What's going on here?

Post by Kiffi »

Have a look at what it looks like in my Notepad++:

Image

(ZWNBSP means "ZERO WIDTH NO-BREAK SPACE")
Hygge
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: What's going on here?

Post by blueb »

I downloaded and tried 1.pb and you're right. It does debug display "Window 0 1" (after uncommenting)
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: What's going on here?

Post by mestnyi »

Kiffi wrote: Thu Mar 06, 2025 1:16 pm Have a look at what it looks like in my Notepad++:

Image

(ZWNBSP means "ZERO WIDTH NO-BREAK SPACE")
Wow, now what, how do I deal with this?
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: What's going on here?

Post by Caronte3D »

You can use before the debug:

Code: Select all

func$=RemoveString(func$,"")
and... inside "" is the ZWNBSP
User avatar
NicTheQuick
Addict
Addict
Posts: 1501
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: What's going on here?

Post by NicTheQuick »

It just looks like you have copied the word `window` from a web page or chat or something like that. The zero-width non-breaking space is usually used to make prevent words from wrapping at the end of a text box.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: What's going on here?

Post by Nituvious »

You deal with it by using Utf8 :mrgreen:
▓▓▓▓▓▒▒▒▒▒░░░░░
Olli
Addict
Addict
Posts: 1194
Joined: Wed May 27, 2020 12:26 pm

Re: What's going on here?

Post by Olli »

Yes I got this problem since 2016. That is the several clipboards. As usual, it is Microsoft which puts a clipboard "bad" content on Windows 8 (in 2016)...
Post Reply