php + vim - ?????? (Bangalore) has a break before the last character ?

Takidy

New Member
I used http://translate.google.com/#en|hi|Bangalore to get the Hindi for Bangalore and ??????.But when I pasted it in vim there is a break before the last character ?.
I am using preg_replace with the regex pattern /[^\p{L}\p{Nd}\p{Mn}_]/u for matching words. But this is treating the last character as a separate word.This is my input string ?????????, ?????? and I am expecting the output to be ????????? ?????? after the preg_replace\[code\]$cleanedString = preg_replace('/[^\p{L}\p{Nd}\p{Mn}_]/u', ' ', $name);\[/code\]But the output I am getting is ????????? ???? ? . What am I doing wrong here? I guess the problem starts from how vim handled the text I pasted.
 
Back
Top