如何删除阿拉伯语单词之间的尾随、前导和多个空格。阿拉伯语字段中的空格与我们在英语中的空格不同。在阿拉伯语中,空格将是一些与我们在英语中使用的空格字符不同的加长字符。请建议我一种方法来验证阿拉伯语字段并从 Informatica Developer 角度的字段中删除多余的空格。
谢谢谢赫
如何删除阿拉伯语单词之间的尾随、前导和多个空格。阿拉伯语字段中的空格与我们在英语中的空格不同。在阿拉伯语中,空格将是一些与我们在英语中使用的空格字符不同的加长字符。请建议我一种方法来验证阿拉伯语字段并从 Informatica Developer 角度的字段中删除多余的空格。
谢谢谢赫
使用java转换并拆分包含所述阿拉伯空格上的阿拉伯间距的字符串:
String[] myArray = myString.split(" ");//in between quotes replace the space with Arabic space
然后遍历连接数组中所有字符串的数组
String cleanString = new String;
cleanString = ""; //create an empty string
for(String str : myArray){
if(str.equals(" ")) //again replace the space with whatever
continue; //skip it if it's a space
cleanString += str;//concatonate any string that isnt a space
}
检查字符代码并REPLACECHR
与CHR
函数一起使用,例如
REPLACECHR(0, input_Port_Name, CHR(<the_space_character_code>), '')