Special C characters
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Special C characters

Started by Nadie, 13 November, 2003, 00:27:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nadie

Greetings...I've a problem that maybe some of you enlightened people could help me to solve...

I've coding a C# small application that will work as the skeleton of a bot I've working into, and I realized when I sent special characters to PM, they werent shown appropiately (/n, /r, etc). Thinking it was a C# problem, I left it alone...but now, I realized its a PtokaX problem (at least, TD4 version), since the bot I'm coding in LUA presents exactly the same problem...

So...any ideas? Thanks In Advance,


Nadie

plop

any line started with a / is captured by dc++.
thats why you don't see them.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Nadie

Mmh...are you sure? For starters, I think dc++ captures such character when you input text on the app, not when it receives from the chat...otherwise, you wouldnt be able to use the / character never, pretty much as the | one...and second, every time I try to use a special character, I get a werid ascii char...sort of not printable one ( a small square on most fonts)...Thanks for your help, anyway....

Any another idea?


Nadie

Nadie

Doh! Forgot to point, its not just at the start of the line...whenever the /n appears, I got the square

Sorry

NightLitch

Nadie, the /n is it in the bot(script) or your app?

cause when scripting in LUA you should use \n not /n,

but I can nothing about C# so I may have wrong here...

/NightLitch
//NL

Nadie

Dumb me! All this time I was meaning \n,lol
The newline C standard escape character: \n


Thanks por pointing it out :-)

c h i l l a

try  \r\n   for PM's  maybe it will solve your prob.

Nadie

Tried, no luck :-(

When I did, got two little squares :'-(

NightLitch

#8
Sounds you have a problem I had with a script once...
But I don't remember how it looked like... And don't have it anylonger either....
And onest I don't know how to do it either....

But it had to to with -gsub-

This is all I can help...

but something with gsub took care of my problem...

remember my problem dou...

I have a txt-file and want it to be loaded but want the bots name infront off everyline...

user:SendData(BotName,TXTLINE.."\r\n")  (didn't work)

but with gsub it looked something like this:

gsub ??? (TXTLINE.."\r\n",BotName) ( but this, but how the values should be I don't know)

doubt this is of any help... but have had a similar problem
so share it with you...

/NightLitch
//NL

SMF spam blocked by CleanTalk