a software to generate a text file, copied to notepad, seemingly have a space between the characters, such as: string "weird" text file, if between Chinese characters "text" and "file" on the blank space key, the back of the Spaces and the text does not move after the meeting (if the blank is a space between Chinese characters, is move after the meeting), through debugging found it under the Delphi string into a few strings with # 9 connected between content is: 'weird' # 9 # 9 'text' 'files'
This is why? How to have replaced # 9 into the blank space? Not use AnsiReplaceStr,
CodePudding user response:
* 9 is the Tab Tab, it is is a space, not character, In edit mode, the manual can be deleted,
CodePudding user response:
In fact this is the true character of the text You should slowly let oneself habits
Ordinary people in the eyes of the text, text is not necessarily a programmer see Programmers at least since ASCII text
CodePudding user response:
Via checking, # 9 is horizontal TAB TAB, use StringReplace can get! Don't know why AnsiReplaceStr and AnsiReplaceText persist...