Hi,
I'm converting a database (that I thought it was utf8) to a txt flat database; here are the results I'm getting:
guozi|5|41.102188|122.502444|CH|19||Guo?zi|
e|5|41.102188|122.502444|CH|19||锅?子|
zaomugou|5|41.144313|122.489929|CH|19||Zaomugou|
|5|41.144313|122.489929|CH|19||枣木沟|
wangjia|5|41.417097|122.412761|CH|19||Wangjia|
c|5|41.417097|122.412761|CH|19||王家|
shengli|5|41.393546|122.456116|CH|19||Shengli|
e|5|41.393546|122.456116|CH|19||胜利|
minjitun|5|41.375362|122.471185|CH|19||Minjitun|
e|5|41.375362|122.471185|CH|19||民集屯|
zhangjiagou|5|41.413368|122.487095|CH|19||Zhangjiagou|
|5|41.413368|122.487095|CH|19||张家沟|
yahua|5|41.42516|122.473109|CH|19||Yahua|
As you can see, some of the lines have strange symbols (utf8?) - not many. I want to exclude them. What kind of match pattern can I use to exclude them?
Kind regards,
Kepler
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|