search for: ufeffoo

Displaying 1 result from an estimated 1 matches for "ufeffoo".

Did you mean: fesfoo
2014 Nov 19
0
nchar reporting wrong width when zero-space character is present?
Dear list, If I include the zero-width non-breaking space (\ufeff) in a string, nchar seems to compute the wrong number of columns used by 'cat'. > x <- "f\ufeffoo" > x [1] "f?oo" > nchar(x,type="width") [1] 2 I would expect "3" here. Going through the documentation of 'Encoding' and 'encodeString', I don't think this is expected behavior. Am I missing something? If it is a bug I will file a report...