Displaying 1 result from an estimated 1 matches for "u00bcrich".
2012 Jan 18
1
use of UTF-8 \uxxxx escape sequences in function arguments
...characters in arguments
plain <- function(myarg = c("Basel", "Bern", "Z?rich")) {
myarg <- match.arg(myarg)
}
## function that uses UTF-8 escape sequences in arguments
escaped <- function(myarg = c("Basel", "Bern", "Z\u00BCrich")) {
myarg <- match.arg(myarg)
}
## test
plain("Z?rich") ## works
plain("Z\u00BCrich") ## fails
escaped("Z?rich") ## fails
escaped("Z\u00BCrich") ## works
Thank you for your help.
Thomas Zumbrunn
> sessionInfo()...