CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Character looking like a square in database

 



widexl
Novice

Aug 15, 2001, 12:17 PM

Post #1 of 5 (753 views)
Character looking like a square in database Can't Post

Hello there

I have a character in my database looking like a square in the windows wordpad.
It is a break but not the normal break ( \n ).
Now someone what this for a break is.





fashimpaur
User / Moderator

Aug 15, 2001, 12:48 PM

Post #2 of 5 (751 views)
Re: Character looking like a square in database [In reply to] Can't Post

Bet it is a windows line break from MS Word or something. I think it equates to a CTRL-M character. If you chomp the data value, it should eliminate it before you send it to your database.

HTH,

Dennis

$a="c323745335d3221214b364d545a362532582521254c3640504c37292f493759214b3635554c3040606a0",print unpack"u*",pack "h*",$a,"\n\n"


widexl
Novice

Aug 15, 2001, 1:08 PM

Post #3 of 5 (749 views)
Re: Character looking like a square in database [In reply to] Can't Post

Thank Dennis

Yes I think its from windows

I have it from checking the domain:
windowsworld.net

chomp $line; don't work
it's not the ( \n ) break.

but I have found it:

it a ( \r ) break.



fashimpaur
User / Moderator

Aug 15, 2001, 1:19 PM

Post #4 of 5 (748 views)
Re: Character looking like a square in database [In reply to] Can't Post

Ahh, never too good to learn something new!

Thanks. I'll remember that.

Dennis

$a="c323745335d3221214b364d545a362532582521254c3640504c37292f493759214b3635554c3040606a0",print unpack"u*",pack "h*",$a,"\n\n"


widexl
Novice

Aug 16, 2001, 10:50 AM

Post #5 of 5 (741 views)
Re: Character looking like a square in database [In reply to] Can't Post

No problem Dennis.

There's the Forum for.



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives