0
text = getPDFContent(path).encode("ascii", "ignore")

This is my actual code. Can anyone tell me what does ignore do? And if there's an another parameter for don't copy non-ascii chars? (I copied the function. It is used to get the contents of a pdf) Thanks

ρss
  • 5,115
  • 8
  • 43
  • 73
diegodalbosco
  • 63
  • 1
  • 6

1 Answers1

0

Did you look at the documentation? The second argument to the encode method on a string object indicates how errors are handled.

ooga
  • 15,423
  • 2
  • 20
  • 21