remove ^B characters

This is a discussion on remove ^B characters within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi there, I've got a problem with ^B characters stored in some mysql tables. In the backup of my ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2003
Reiner Griess
 
Posts: n/a
Default remove ^B characters

Hi there,

I've got a problem with ^B characters stored in some mysql tables. In
the backup of my DB I read something like that with vi:

INSERT INTO f_ergebnisse VALUES (.....,'^B25^B'......);

What are these ^B characters? Blanks?

So I've tried to remove them with this line in my php script when
printing them out:

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$line = str_replace("/\r\n|\r|\n/", " ", $line);
... }

But those annoying characters will not get removed.

How do I get rid of them?

Thanks in advance
reiner

Reply With Quote
Reply


Thread Tools
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

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



All times are GMT +1. The time now is 06:17 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0