Why grepl ingore.case doesn't work with latin words?
<p>I'm cleaning strings of characters that contain names. I don't understand why <code>grepl</code> <code>ingnore.case</code> do not work, whereas in <code>gsub</code> it does. Here is an example:</p>

<pre><code>x &lt;-c("castañda", "gonzález", "gonzÁlez", "gonzález")
&gt; grepl("á", x, ignore.case = T)
[1] FALSE  TRUE FALSE  TRUE
</code></pre>

<p>Here <code>grepl</code> is not matching "gonzÁlez"</p>

<pre><code>gsub("á", x=x, "a", ignore.case = T)
[1] "castañda" "gonzalez" "gonzalez" "gonzalez"
</code></pre>

<p>Whereas <code>gsub</code> succesfuly matches "á" and "Á"</p>