Skip to content

[BUG] Currency Symbols Cause Text Corruption #11648

@diovannesn

Description

@diovannesn

Problem (one or two sentences)

Currency symbols (R$, US$, CA$, etc.) in chat messages cause text corruption. Any text between two $ symbols is incorrectly interpreted as LaTeX math, resulting in garbled characters.

Context (who is affected and when)

Anyone typing financial information, prices, or currency amounts in their native language. Particularly affects users in Brazil (R$), USA (US$), Canada (CA$), Australia (A$), and other countries using $ in currency notation. Happens whenever two or more currency symbols appear in the same message.

Reproduction steps

  1. Open Roo Code chat
  2. Type a message with currency: The cost is R$ 35 and the fee is US$ 50
  3. Send the message
  4. Observe the rendered text (specially in long messages, it will break and not render $)

Expected result

Text renders normally: "The cost is R$ 35 and the fee is US$ 50"

Actual result

Text between the two $ symbols is corrupted with broken encoding: "The cost is R 35andthefeeis U S$ 50" (characters mangled, accents broken)

Variations tried (optional)

No response

App Version

3.5.0

API Provider (optional)

Not Applicable / Other

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions