Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Echoing Unicode in batch scripts?

Featured Replies

There's a text file:

عربي中文(简体)繁體中文版本češtinaελληνικάעִבְרִית日本語한국어portuguêsрусскийTürkçe
I'd like to echo these lines to another file.

This obviously doesn't work:

FOR /F %%A IN (test.txt) DO ECHO %%A
I've searched in the Internet and tried several different methods, including changing the code page go 65001, changing the CMD font to Arial Unicode, changing code page of the text file itself and others. None of them worked though.

Above is just a list of these different language names but normally they appear in many different places in the text file and are surrounded by other text. They may also appear next to each other.

Is there any method proved to work in this case? I don't mind using 3rd party tools if necessary.

Edited by tomasz86

There may be a way to output it from a script but it would be very specific and not generic.

it would very likely that the method would not be easily transferrable in a different scenario later

ss64.com shows an example of using the TYPE command to do something like this.

Edited by 5eraph

I could have sworn that I had a solution to this somewhere but it might have involved AHK. WIll have to research some past efforts when I get some free time. In the meantime, I hereby subscribe to this thread :)

Note: I seem to recall one issue I had was that I got a script to work but didn't realize it because the text viewer I was using (actually a file explorer at the time) wasn't properly displaying the unicode chars in the first place. So, yeah...check the obvious stuff first :whistle:

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.