Localization

Posted: 2017-01-19 in Localization

Q:
I’ve just migrated to Lianja 2.0, but I’ve some problem with some char… à, °…
also if I rewrite it, after reload the app, there are wrong..
A:
Did you convertutf8 app <appname> and set your Lianja App Builder shortcut to include the –utf8 command line switch?


Q:
in my app, I call a RSP page:
Code:

Code:
<%@ Language=VFP %>
<html>
<head>
<Meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        if (typeof window.parent !== 'undefined' && typeof window.parent.Lianja !== 'undefined')
        {
                window.Lianja = window.parent.Lianja;
        };

<%
        private lnI
        lnI = 0
        
        public rspbusy
        rspbusy = .T.

        timeofday()
        set macros on
        set fixed on
...
...
..

From this RSP page, I return a value, selected by user.
The Value is “Rosè“, but from code, I get “Ros?”.
How can I convert to UTF-8?
A:
recommend that all apps should be developed and deployed as utf-8.


Tip: To convert a string containing codepage characters to UTF-8, use the strconv( string [,codepage] ) function. By default the “codepage” used will be your locale codepage.



 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s