ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

According to Python: Removing \xa0 from string?, ordinal \xa0 is a "non breaking space".

That is indeed a unicode character, not an ascii one.

If you copied your example from a website, those can include non-breaking spaces (as those are often used on websites to make sure the browser doesn't affect code example rendering).

I would advise you to rewrite your launch file.

Suspicuous charachters are:

  • whitespace (ie: spaces)
  • (double) quotes (ie: ' and ")
  • question marks (ie: ?)

the latter may be surprising, but I've been in situations where it was not a question mark from the ascii range (ie: the "normal" question mark), but a slightly different version, from a unicode table.

Just replace all of those with a text editor and try again.

If your editor supports encoding transformations (ie: wholesale conversion from UTF to ASCII) then you could try those.

According to Python: Removing \xa0 from string?, ordinal \xa0 is a "non breaking space".

That is indeed a unicode character, not an ascii one.

If you copied your example from a website, those can include non-breaking spaces (as those are often used on websites to make sure the browser doesn't affect code example rendering).

I would advise you to rewrite your launch file.

Suspicuous charachters characters are:

  • whitespace (ie: spaces)
  • (double) quotes (ie: ' and ")
  • question marks (ie: ?)

the latter may be surprising, but I've been in situations where it was not a question mark from the ascii range (ie: the "normal" question mark), but a slightly different version, from a unicode table.

Just replace all of those with a text editor and try again.

If your editor supports encoding transformations (ie: wholesale conversion from UTF to ASCII) then you could try those.