acts_as_solr vs Illegal character CTRLCHAR code 31
Just found out that 37 is an illegal solr character…
x.gsub(“37″,”) solves the problem…
Patch
# acts_as_solr/instance_methods.rb:62
# remove illegal control character in text cannot be added ("#{i}" does not work...)
["\032","\033","\034","\035","\036","\037"].each do |char|
v = v.gsub(char,'')
end
shouldn’t it be ssth like this ?
[“\032″,”\033″,”\034″,”\035″,”\036″,”\037”].each do |char|
v = v.gsub(char,”)
end
wordpress kills \0, now it should work after writing \\00