Public
Edited
Nov 28, 2022
1 star
RouterOS Unicode String Encoder & Decoder
CSV to Mikrotik RouterOS Script Array
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
convertedInput = `${toMikrotikUtf8(utfToConvert)}`
Insert cell
Insert cell
Insert cell
toMikrotikUtf8 = (str) => Array(...(new TextEncoder()).encode(str)).map(i => `\\${i.toString(16).toUpperCase()}`).join("")
Insert cell
fromMikrotikUtf8 = (str) => (new TextDecoder()).decode(new Uint8Array(str.split("\\").splice(1).map(i => parseInt(i,16))))
Insert cell
Insert cell
Insert cell
Insert cell
viewof utfToConverFontSize = Inputs.range([12,64], {label: "Font Size of Input", value: 27})
Insert cell
Insert cell
(viewof utfToConvert).style.fontSize=`${utfToConverFontSize}pt`;
Insert cell
Insert cell
// to see output just have a cell with the variable and Obervable with "dump" it
emojis
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more