0

如何删除阿拉伯语单词之间的尾随、前导和多个空格。阿拉伯语字段中的空格与我们在英语中的空格不同。在阿拉伯语中,空格将是一些与我们在英语中使用的空格字符不同的加长字符。请建议我一种方法来验证阿拉伯语字段并从 Informatica Developer 角度的字段中删除多余的空格。

谢谢谢赫

4

2 回答 2

0

使用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
}
于 2019-11-22T15:08:02.157 回答
0

检查字符代码并REPLACECHRCHR函数一起使用,例如

REPLACECHR(0, input_Port_Name, CHR(<the_space_character_code>), '')
于 2019-11-26T14:02:55.233 回答