Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to encode a newline in the address bar search?

  • 1 vastus
  • 1 on selline probleem
  • 5 views
  • Viimati vastas FredMcD

more options

Hello!

I perform some translations through address bar searches, which use the URL of a translation engine (Bing/Google translate).

One thing that I couldn't solve is how to encode newlines. Sometimes, the text to translate includes newlines. When I copy/paste, the address bar flattens the text, entirely removing the newlines. For longer texts, this makes reading the translated text more difficult, because the result is a single, very long, line.

I've tried pasting "%0A" and "\n", but they are encoded.

Is there any way to encode a newline via copy/paste into the address bar search URL?

Thanks.

Hello! I perform some translations through address bar searches, which use the URL of a translation engine (Bing/Google translate). One thing that I couldn't solve is how to encode newlines. Sometimes, the text to translate includes newlines. When I copy/paste, the address bar flattens the text, entirely removing the newlines. For longer texts, this makes reading the translated text more difficult, because the result is a single, very long, line. I've tried pasting "%0A" and "\n", but they are encoded. Is there any way to encode a newline via copy/paste into the address bar search URL? Thanks.

All Replies (1)

more options

The best way would be to open the translator page in a new window/tab. Then copy the text over to the translator.