Player write text where is \n and \t
#1

Hi,

What if player write text where is \n and \t and then i write to database? is still remaining, when i load and show?
Reply
#2

They're escaped basically.
Reply
#3

Any way to unescape them?
Reply
#4

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Any way to unescape them?
I think using %s specifier would work.
Reply
#5

If a player types \n (or \t) (in a dialog or in the chat) it doesn't become a newline (or a tab) because they are two separate characters. If stored in the database as-is it will be read back as-is.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)