Decode legacy encoded content before matching.
Section: Encodings and text quirks
Search Shift_JIS text
bash
bash
rg --encoding shift_jis 'エラー' app.logExplanation
Encoding support helps when working across older systems or regional datasets.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Encodings and text quirks
Disable line numbers for transformed output
Print cleaner replacement previews.
Print NUL-delimited paths
Use NUL separators to make filename parsing safe.
Preview a simple replacement
Show what matched lines would look like after substitution.