For example use js input value with oninput
let str = phrase.value.split(``)
for (let index = 0; index < str.length; index++) {
// Add any way arabic diacretic sumbul fatha for example
str[index] = str[index] + `ŮŽ`;
}
let str2 = str.join(``)
str2 for SQL query, I use this