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:
adding 0D 0A to a UTF-8 file.

 



lukin4love
New User

Feb 22, 2011, 10:53 PM

Post #1 of 2 (593 views)
adding 0D 0A to a UTF-8 file. Can't Post

I am using perl v. 5.10.0 on a Vista 64 bit computer, trying to create a few lines in a file that I will later copy and paste into an XML file that uses UTF-8.

The XML file when viewed with "notepad" on a windows XP system shows what looks like text and arrow signs with a square between opposing arrow signs like this,,,,with [] representing the square.
___________________________________________________________________________

lots of text>[]< lots of text>[]<lots of text
____________________________________________________________________





When viewed on a Vista machine using "notepad" you don't see the [] character and see instead a newline carriage return is displayed like this.
____________________________________________________________________________

lots of text>

< lots of text>

<lots of text
_____________________________________________________________________



I think the [] represents a char(13) character(10) i.e. \x0D \x0A i.e. I think x000D x000A .

But maybe it needs to be sent differently because it is for a UTF-8 xml file.



I tried to copy just the [] character into a text file and then used

my @odaoutput= <ODOA>;

print OUTFILE " some text>@odaoutput";

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Everything I try ends up looking like a line feed carriage return, even on the XP system. Never does it look like the original [] when viewed on the XP system.

Can you help me please?


violet
New User

Feb 22, 2011, 11:41 PM

Post #2 of 2 (592 views)
Re: [lukin4love] adding 0D 0A to a UTF-8 file. [In reply to] Can't Post

TaylorMade Burner SuperFast 2.0 Driver ( http://www.chinawholesalegroup.com/taylormade-burner-superfast-20-driver_p23488.html )
TaylorMade R9 SuperMax Driver ( http://www.chinawholesalegroup.com/taylormade-r9-supermax-driver_p23489.html )
PING K15 Driver ( http://www.chinawholesalegroup.com/ping-k15-driver_p23323.html )
Honma BERES MG813 Driver ( http://www.chinawholesalegroup.com/honma-beres-mg813-driver_p23490.html )
Mizuno MP-63 irons ( http://www.chinawholesalegroup.com/mizuno-mp63-irons_p23494.html )

 
 


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

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