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++.

  1. open file want replace

  2. click ctrl+h.

  3. in field find what: type

  4. in field replace with: type normal quotation mark "

  5. click replace all button.


method #2

you can use [^\x00-\x7f]+ expression.

  1. open notepad ++
  2. click ctrl+f
  3. select regular expression
  4. in find what: field paste [^\x00-\x7f]+
  5. click find next

it find non ascii characters. can easy delete / replace them.


method #3

  1. open notepat++
  2. click search
  3. click find characters in range...
  4. select non-ascii characters (128-255)
  5. click find

working method #2.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -