|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 3 of 3 total|
|Wed, Feb 12 2014 5:47 AM||Permanent Link|
I have a server that uses names and organisations, and must have an 8-bit ANSI
string. It is used for install codes, and I can't have the code require that the
user put in #1345; or similar in their name!
Given that EWB applications are of course proper Unicode, and I talk to my RO
server using UTF8Strings, what options do I have to ensure proper operation?
I'd like the browser to be able to do this if possible, but could send it back to
the Delphi (XE2) server if needed. I just need to be sure that when someone puts in
their name in chinese, or uses a smiley, that they can be show how it will look in
basic ANSI in the browser too. It's not about making sure that it survives a
transition to ANSI, but that any issues in conversion are seen immediately, if you
see what I mean.
|Wed, Feb 12 2014 8:56 AM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< Given that EWB applications are of course proper Unicode, and I talk to
my RO server using UTF8Strings, what options do I have to ensure proper
Just loop through the string and make sure that all of the characters are <=
function IsAnsiString(const Value: String): Boolean;
for I:=1 to Length(Value) do
if (Value[I] > #255) then
procedure TForm1.Button3Click(Sender: TObject);
if (not IsAnsiString(Edit1.Text)) then
ShowMessage('Invalid characters entered');
<< I'd like the browser to be able to do this if possible, but could send it
back to the Delphi (XE2) server if needed. >>
Due to how browser applications work, you'll probably want to do both. The
part on the front is just for the end-user, the part on the back is for you.
|Wed, Feb 12 2014 11:29 AM||Permanent Link|
Thanks - that is easy.