Skip to content
Prev 8293 / 15076 Next

accented vowels

Le 2011-08-15 ? 22:24, Duncan Murdoch a ?crit :
Hi again Duncan,

the "Errors due to normalization differences" part of the article you referred to seems to confirm your suspicion. 

I can get this to work but it is messy:

S?tefileraw = charToRaw(substr(b[2],13,17))
S?tefile = rawToChar(S?tefileraw)

S?tekbraw = charToRaw(substr(a[2],13,16))
S?tekb = rawToChar(S?tekbraw)

c = b
c = gsub(S?tefile, S?tekb, c)
at this point, S?te has become the "keyboard" version and the rest of the script can work
c2 = gsub(" S?te", "S", c); c2
[1] "1_MO2 crevettes po2crit.Rda" "1_MO2 solesS sda.Rda"        "1_MO2 turbots po2crit.Rda"  

I'll keep accented vowels out of file names for this project whenever I'll have to use gsub on them!

Thanks again,

Denis