Encoding UTF-8 on Tizen CCEditBox and check empty string.

This commit is contained in:
Lee, Jae-Hong 2013-05-28 20:04:37 +09:00
parent 47fac0ed98
commit 5031aa1fd3
1 changed files with 5 additions and 2 deletions

View File

@ -116,8 +116,11 @@ CCOspForm::OnTouchReleased(const Control& source, const Point& currentPosition,
void CCOspForm::OnTextValueChanged(const Tizen::Ui::Control& source)
{
String text = __pKeypad->GetText();
AsciiEncoding ascii;
m_pfEditTextCallback((const char *)ascii.GetBytesN(text)->GetPointer(), m_pCtx);
Utf8Encoding utf8;
const char* pText = "";
if (!text.IsEmpty())
pText = (const char *)utf8.GetBytesN(text)->GetPointer();
m_pfEditTextCallback(pText, m_pCtx);
}
void CCOspForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)