/** * vBulletin 3.8.11 CSS * Style: 'Non-Book Style_visstudkeyword'; Style ID: 15 */ body { background: #ffffff; color: #000000; font: 10pt arial, helvetica, sans-serif; margin: 0 0 10px 0; padding: 0; } a:link, body_alink { color: #990033; } a:visited, body_avisited { color: #660033; } a:hover, a:active, body_ahover { color: #C40D42; text-decoration: none; } .page { background: #FFFFFF; color: #000000; } td, th, p, li { font: 10pt arial, helvetica, sans-serif; } .tborder { background: #D1D1E1; color: #000000; border: 1px solid #999999; } .tcat { background: #c2c2c2; color: #000000; font: bold 12px verdana, arial, helvetica, sans-serif; } .tcat a:link, .tcat_alink { color: #000000; text-decoration: none; } .tcat a:visited, .tcat_avisited { color: #000000; text-decoration: none; } .tcat a:hover, .tcat a:active, .tcat_ahover { color: #000000; text-decoration: underline; } .thead { background: #C40D42; color: #ffffff; font: bold 11px verdana, arial, helvetica, sans-serif; } .thead a:link, .thead_alink { color: #FFFFFF; } .thead a:visited, .thead_avisited { color: #FFFFFF; } .thead a:hover, .thead a:active, .thead_ahover { color: #FFFF00; } .tfoot { background: #ffffff; color: #666666; } .tfoot a:link, .tfoot_alink { color: #990033; } .tfoot a:visited, .tfoot_avisited { color: #660033; } .tfoot a:hover, .tfoot a:active, .tfoot_ahover { color: #C40D42; text-decoration: none; } .alt1, .alt1Active { background: #F5F5F5; color: #333333; } .alt2, .alt2Active { background: #ebebeb; color: #333333; } .alt2 a:link, .alt2_alink, .alt2Active a:link, .alt2Active_alink { color: #000000; } .alt2 a:visited, .alt2_avisited, .alt2Active a:visited, .alt2Active_avisited { color: #000000; } .alt2 a:hover, .alt2 a:active, .alt2_ahover, .alt2Active a:hover, .alt2Active a:active, .alt2Active_ahover { color: #000000; text-decoration: none; } .inlinemod { background: #FFFFCC; color: #000000; } .wysiwyg { background: #F5F5FF; color: #333333; font: 10pt verdana, arial, helvetica, sans-serif; } .wysiwyg a:link, .wysiwyg_alink { color: #000000; } .wysiwyg a:visited, .wysiwyg_avisited { color: #000000; } .wysiwyg a:hover, .wysiwyg a:active, .wysiwyg_ahover { color: #000000; text-decoration: none; } textarea, .bginput { font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .bginput option, .bginput optgroup { font-size: 10pt; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .button { font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } select { font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } option, optgroup { font-size: 11px; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .smallfont { font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .time { color: #666666; } .navbar { font-family: verdana, arial, helvetica, sans-serif; } .highlight { color: #FF0000; font-weight: bold; } .fjsel { background: #2d2d2d; color: #ffffff; } .fjdpth0 { background: #F7F7F7; color: #000000; } .panel { background: #E4E7F5 url(images/gradients/gradient_panel.gif) repeat-x top left; color: #000000; padding: 10px; border: 2px outset; } .panelsurround { background: #D1D4E0 url(images/gradients/gradient_panelsurround.gif) repeat-x top left; color: #000000; } legend { color: #22229C; font: 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .vbmenu_control { background: #c2c2c2; color: #000000; font: bold 12px verdana, arial, helvetica, sans-serif; padding: 8px 3px 8px 3px; white-space: nowrap; text-align: center; } .vbmenu_control a:link, .vbmenu_control_alink { color: #000000; text-decoration: none; } .vbmenu_control a:visited, .vbmenu_control_avisited { color: #000000; text-decoration: none; } .vbmenu_control a:hover, .vbmenu_control a:active, .vbmenu_control_ahover { color: #000000; text-decoration: underline; } .vbmenu_popup { background: #FFFFFF; color: #000000; border: 1px solid #0B198C; } .vbmenu_option { background: #ebebeb; color: #000000; font: 11px verdana, arial, helvetica, sans-serif; white-space: nowrap; cursor: pointer; } .vbmenu_option a:link, .vbmenu_option_alink { color: #990033; text-decoration: none; } .vbmenu_option a:visited, .vbmenu_option_avisited { color: #660033; text-decoration: none; } .vbmenu_option a:hover, .vbmenu_option a:active, .vbmenu_option_ahover { color: #C40D42; text-decoration: none; } .vbmenu_hilite { background: #c2c2c2; color: #000000; font: 11px verdana, arial, helvetica, sans-serif; white-space: nowrap; cursor: pointer; } .vbmenu_hilite a:link, .vbmenu_hilite_alink { color: #990033; text-decoration: none; } .vbmenu_hilite a:visited, .vbmenu_hilite_avisited { color: #660033; text-decoration: none; } .vbmenu_hilite a:hover, .vbmenu_hilite a:active, .vbmenu_hilite_ahover { color: #C40D42; text-decoration: none; } /* ***** Custom P2P styles ***** */ td.leftcolumn {background: url('images/gradients/gradient_left.gif') repeat-y;} .welcome-content {margin: 0 0 0 5px;} /* vbmenu overrides */ #p2p-menu { border: 1px solid #999999; } #p2p-menu td.vbmenu_control { padding: 8px 3px 8px 3px; white-space: nowrap; text-align: center; background: #2d2d2d; color: #ffffff; } #p2p-menu td.vbmenu_control a:link, #p2p-menu td.vbmenu_control a:visited{ color: #ffffff; text-decoration: none; } #p2p-menu td.vbmenu_control a:hover{ color: #ffffff; text-decoration: underline; } #imod, {background: #c40d42;} /* Ad Styles */ .leaderboard-ad {text-align: center; margin-top: 5px; margin-bottom: 5px;} .leftnav-ad {text-align: center; padding: 12px 0 0 0;} .text-ad { background: #c2c2c2; width: 343px; margin: 10px 0; border: 1px solid #999999; } .text-ad_content { margin: 10px; font-size: 11px; color: #000; } .text-ad_content a:link, .text-ad_content a:visited { text-decoration: none; } .text-ad a:hover { text-decoration: underline; } /* feature header */ div.featurebox p{ background-color:#000000; padding-left:10px; line-height: 2; color:#FFFFFF; font-size: 12px; font-weight: bold; margin:0 4px 8px 0; } /* feature box content */ div.featureboxlinks{ font-size: 11px; padding:0 4px 4px 10px; } .featureboxlinks_related_titles{ padding: 0 10px 0 10px; } .featurebox_cover_image {border: 1px solid #666666;margin:0 0 5px 0;} /* curved box */ .curvebox {margin: 0 0 5px 0; padding: 0; font-family: Arial, Helvetica ,sans-serif;} .curvebox-top {background: url('images/curvebox/curvebox-top_gradient.gif') repeat-x; margin: 0; padding:0; width: 100%;} .curvebox-top_left {float: left; margin:0 padding:0; width: 10px;} .curvebox-top_right {float: right; margin:0 padding:0; width: 10px;} .curvebox-main {background: #e8e8e8 url('images/curvebox/curvebox_gradient.gif') repeat-x; margin: 0; padding; 0; border: 2px solid #cccccc; border-top: none;} div.curvebox h3 { font-family: Arial, Helvetica ,sans-serif; font-size:16px; padding:11px 0 5 15; margin:0; } div.subhead { font-family: Arial, Helvetica ,sans-serif; font-size:12px; padding-top: 5px; } div.curveboxFooter p { font-size:12px; font-weight: bold; padding:10px 0 10 15; margin:-1.5em 0 0 0; } div.curveboxNoFooter p { font-size:12px; font-weight: bold; padding-left: 15px; padding-bottom: 5px; margin:-.2em 0 0 0; } div.curveboxNoFooterBlogs p { font-size:3px; font-weight: bold; padding-left: 15px; padding-bottom: 5px; margin:-.2em 0 0 0; } div.curveboxFooter a {color: #990033;} td.greytable{background-color: #E5E5E5;} .curveboxMiscLinks { float:right; margin-top:-1.5em; padding-right:15px; font-size:11px;} /* Leftnav styles */ #leftnav {width: 155px; margin: 12px 8px 12px 8px;} #leftnav .leftheader {background: #5b5b5b; padding: 6px 10px 6px 10px} #leftnav .leftheader h3 {font-family: Verdana, Arial, sans-serif; font-size: 11px; color: #ffffff; margin: 0; padding: 0;} #leftnav .navigation {padding: 12px 11px 12px 11px; background: #ffffff;} #leftnav .nav-link {font-size: 11px; padding:0 4px 4px 10px;} /* global footer */ div.footer {margin-left:10px;margin-top:2px;font-size:11px;font-family: Arial, Helvetica,sans-serif;color:#666666;} div.gradient_bottom_stretch {width: 100%;height: 5px;margin:0px; background: url('images/gradients/gradient_bottom.gif') repeat-x; } /* Download Code Box styles */ .download-box { width: 224px; margin: 5px 10px 5px 30px; padding: 0; } .download-box_top { width: 224px; height: 8px; margin: 0; padding: 0; background: url('images/curvebox/download_curvebox_top.gif') no-repeat bottom left; } .download-box_bottom { width: 224px; height: 8px; margin: 0; padding: 0; background: url('images/curvebox/download_curvebox_bottom.gif') no-repeat top left; } .download-box_wrapper { margin: 0; padding: 0 5px; border-right: 1px solid #999; border-left: 1px solid #999; text-align: center; background: #fff; } .download-box h3 { margin: 0; padding: 0; text-transform: uppercase; font-family: Helvetica, Arial, sans-serif; font-weight: bold; font-size: 13px; } .download-box p { margin: 5px 0 0 0; padding: 0; font-family: Arial, sans-serif; font-weight: bold; font-size: 12px; } .nav-wrapper { background-color: #c40d42; } div.nav { background: url('http://media.wiley.com/assets/1818/07/bg_nav.gif') top left repeat-x; height: 30px; overflow: hidden; padding-left: 10px; margin-top: 5px; } div.subnav-wrapper { background: #666666; padding-top: 5px; } div.subnav { background-color: #666666; height: 24px; overflow: hidden; padding-left: 15px; } div.nav ul, div.subnav ul, div.footer ul { float: left; list-style: none; margin: 0; padding: 0; } div.nav li, div.subnav li { float: left; margin: 0; padding: 0; } div.nav a, div.subnav a, div.nav a:visited, div.subnav a:visited { display: block; font-size: 13px; font-weight: bold; line-height: 29px; margin: 0 10px 0 5px; padding: 0; text-decoration: none; } div.nav a, div.nav a:visited { color: #fff; } div.subnav a, div.subnav a:visited { border-right: dotted 1px #fff; _border-width: 2px; color: #fff; margin: 2px 5px 0 5px; font-weight: normal; padding: 0 10px 2px 0; font-size: 12px; line-height: 14px; } div.subnav a:hover { text-decoration:underline; } div.subnav a.last { border-right: none; } div.nav .current { background: url("http://media.wiley.com/assets/1818/08/bg_nav_current_left.gif") no-repeat top left; float: left; margin: 0 15px 0 0; _margin-right: 5px; padding: 0 0 0 5px; } div.nav .current a, div.nav .current a:visited { background: url("http://media.wiley.com/assets/1818/09/bg_nav_current_right.gif") no-repeat top right; color: #fff; display: block; margin: 0 2px 0 0; padding: 0px 10px 1px 5px !important; text-decoration: none; } div.nav a:hover, div.subnav a:hover { color: #e5e5e5; text-decoration: underline; } div.nav .current a:hover, div.subnav .current a:hover { color: #e5e5e5; text-decoration: underline; } div.subnav .current a:hover { color: #e5e5e5; text-decoration: underline; } div.headerWrapper input.inputSm { width: 100px; } /* ***** styling for 'big' usernames on postbit etc. ***** */ .bigusername { font-size: 14pt; } /* ***** small padding on 'thead' elements ***** */ td.thead, th.thead, div.thead { padding: 4px; } /* ***** basic styles for multi-page nav elements */ .pagenav a { text-decoration: none; } .pagenav td { padding: 2px 4px 2px 4px; } /* ***** de-emphasized text */ .shade, a.shade:link, a.shade:visited { color: #777777; text-decoration: none; } a.shade:active, a.shade:hover { color: #FF4400; text-decoration: underline; } .tcat .shade, .thead .shade, .tfoot .shade { color: #DDDDDD; } /* ***** define margin and font-size for elements inside panels ***** */ .fieldset { margin-bottom: 6px; } .fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; } /* ***** don't change the following ***** */ form { display: inline; } label { cursor: default; } .normal { font-weight: normal; } .inlineimg { vertical-align: middle; } .underline { text-decoration: underline; } pre.alt2 { width: 800px !important; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; } How To Avoid -Unicode \0 while reading file
Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 27th, 2008, 06:42 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default How To Avoid -Unicode \0 while reading file

Hi All,

I am reading a file which gives me following line.
"\0u\0s\0e\0r\0s\0\0R\0M\0A\0N\0N\0\0s\0i\0m\0u\0a \0l\0 \0h\0r\0t\0k\0p\0x\0 \01\09\01\09"

Note-other lines also give me(,) character which i have to read in order to retrieve some values, e.g. \0\0P\0I\0N\0:\01\02\03\04\0\0..... so i am just looking to remove this \0 only.


I want to replace "\0" from above line.
Any Regular expression to handle this?
Any pointer/input would be great help.

Thanks in advance

Cheers :)

vinod
__________________
Cheers :)

vinod
Reply With Quote
  #2 (permalink)  
Old July 27th, 2008, 07:16 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Only a rought quess but it sounds like you are trying to read a unicode file as ASCII.

Something like the following might solve the problem (but seeing as we can't see how you are reading the file we're not sure):

StreamReader sr = new StreamReader(filename, Encoding.UTF8);

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
  #3 (permalink)  
Old March 6th, 2019, 05:00 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2019
Location: Level 6/140 Creek Street, Brisbane, Qld, Australia
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default You can never go wrong with WriteCDR. Check its CDR Report Samples

WriteCDR brings you the best Competency Demonstration Report Samples for engineers of different disciplines. All these samples have won EA approval. If you want to migrate to Australia and settle down there, these
cdr sample can offer you best guidance on what EA expects from you. You may also ask the WriteCDR experts for CDR samples that have failed for reference purposes or ask them about the most common mistakes people make while writing a CDR. All the samples that we present here have been written by WriteCDR experts and are presented to the clients only for reference purposes. Contact WriteCDR now for FREE samples. acs rpl sample
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to avoid duplicate values from the xml file us balasundarrao XSLT 2 June 4th, 2014 11:56 PM
How to avoid file download box for attachment Gnanamani Servlets 6 December 24th, 2007 06:46 AM
Avoid Exporting Temp Directory W/ .htm File chuckca Crystal Reports 0 July 22nd, 2005 07:21 PM
Unicode ASP FIle Problem tks_muthu Classic ASP Databases 2 February 25th, 2005 06:45 AM
How to Avoid PopUp Windows when link to a file? Dragonist HTML Code Clinic 3 July 29th, 2004 08:43 PM



All times are GMT -4. The time now is 04:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.