in reply to Re: How to remove an apostrophe?
in thread How to remove an apostrophe?

It is pulled from the filename: "00_te'st.jpg"

So, I'm sure it's not a backtick. If it is unicode, what would you suggest to fix it?

Also, thank you for simplifying that other peice of code. I'm still in the "get the thing to work" phase of development. hehe.

Replies are listed 'Best First'.
Re^3: How to remove an apostrophe?
by ikegami (Patriarch) on Oct 12, 2005 at 18:56 UTC

    Find out what character it is using the snippet below, then use \x{####} instead of an apostrophe in the regexp, where "####" is the number printed by the snippet below).

    printf("%X\n", ord(substr($newName, 5, 1)));