php - How to remove ASCII codes from text via notepad/Sublime or Excel -
i having big trouble ascii commas , quotations marks causing error in db importing.
whenever add text website, copies ascii codes also.
example:
(“)
quotation mark different (")
(“) <--this quotation mark ascii character causing error in db importing , every time need check , replace default quotation mark (")
any idea please?
method #1
you can notepad++.
open file want replace
click ctrl+h.
in field
find what:type“in field
replace with:type normal quotation mark"click
replace allbutton.
method #2
you can use [^\x00-\x7f]+ expression.
- open notepad ++
- click ctrl+f
- select
regular expression - in
find what:field paste[^\x00-\x7f]+ - click
find next
it find non ascii characters. can easy delete / replace them.
method #3
- open
notepat++ - click
search - click
find characters in range... - select
non-ascii characters (128-255) - click
find
working method #2.
Comments
Post a Comment