I have the following TeX file which runs on XeLaTeX:
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia,xltxtra}
\setdefaultlanguage{malayalam}
\setmainfont[Script=Malayalam,Mapping=tex-text]{Rachana}% Downloaded from http://download.savannah.gnu.org/releases/smc/fonts/malayalam-fonts-5.0/Rachana/Rachana.ttf
\begin{document}
ആധുനികവ്യവസായം ലോകകമ്പോളം സ്ഥാപിച്ചിരിക്കുന്നു. അമേരിക്ക കണ്ടുപിടിക്കപ്പെട്ടതാണ് അതിനു് വഴിതെളിയിച്ചതു്. ഈ കമ്പോളം വ്യാപാരത്തിനും കടൽമാർഗ്ഗേണയും കരമാർഗ്ഗേണയുമുള്ള ഗതാഗതത്തിനും വമ്പിച്ച വികസനം നൽകി. ഈ വികാസമാകട്ടെ വ്യവസായത്തിന്റെ വിപുലീകരണത്തെ സഹായിച്ചു. മാത്രമല്ല, വ്യവസായവും വ്യാപാരവും കപ്പൽഗതാഗതവും റെയിൽവേകളും വളർന്ന തോതിൽത്തന്നെ ബൂർഷ്വാസിയും വളർന്നു: അതിന്റെ മൂലധനം പെരുകി; മദ്ധ്യയുഗത്തിന്റെ സന്തതികളായ എല്ലാ വർഗ്ഗങ്ങളേയും അതു് പിന്നോക്കം തള്ളിനീക്കി.
\end{document}
The output looks like:

I want to get rid of the hyphen characters appearing at the end of the line. I do not need the hyphen character where a word break into two lines. When I tried the following:
\setmainfont[Script=Malayalam,Mapping=tex-text,,HyphenChar="00]{Rachana}
the hyphen character disappeared and the output looks fine. Is this a right way?


"200B(zero width space) is a better choice, if it is in the font. – egreg Jul 17 '13 at 15:50