Re: Direct utf 8 Label
- From: behrooz rock com
- To: "bijan binaee" <bijanbina gmail com>, gnome-shell-list gnome org
- Subject: Re: Direct utf 8 Label
- Date: Fri, 30 Dec 2011 11:51:34 +0330
you can convert your strings by http://pastebin.com/JUz1zeuy
there're other solutions too, for example json_encode function
of php can do the same.
> ----- Original Message -----
> From: bijan binaee <bijanbina gmail com>
> To: behrooz rock com
> Subject: Re: Direct utf 8 Label
> Date: Fri, 30 Dec 2011 07:35:10 +0330
>
>
> Thanks Richard And behrooz
>
> Richard: when I try to use gettext i got this error
> fa.po:21:9: invalid multibyte sequence
> fa.po:21:10: invalid multibyte sequence
> fa.po:21:11: invalid multibyte sequence
> fa.po:21:12: invalid multibyte sequence
> fa.po:21:13: invalid multibyte sequence
> fa.po:21:14: invalid multibyte sequence
> fa.po:21:15: invalid multibyte sequence
> fa.po:21:16: invalid multibyte sequence
>
> and in line 21 i write utf code
>
> and Behrooz Answer: thanks behrooz your soulotion worked but how can i
> convert the utf8 to these code?
>
> On Thu, Dec 29, 2011 at 11:02 PM, Richard wrote:
>
> > try "\u0633\u0644\u0627\u0645" instead of "سلام"
> >
> > ----- Original Message -----
> > From: bijan binaee **
> > To: gnome-shell-list gnome org
> > Subject: Direct utf 8 Label
> > Date: Thu, 29 Dec 2011 13:14:15 +0330
> >
> > Hi everybody in the mailing list
> >
> > I had defined St.Label and now i want to set the text of label to
> > something like "سلام" but
> > next the text show on the screen is not right
> >
> > i check the encoding the source code and it's utf8
> >
> > can any body know why this problem cause
> >
> > also i attach the result
> >
> > Regards Bijan Binaee
> >
> >
> > [Attachment: Screenshot at 2011-12-29 13:12:26.png]
> >
> > _______________________________________________
> > gnome-shell-list mailing list
> > gnome-shell-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-shell-list
> > **
> >
> >
> >
>
> On Thu, Dec 29, 2011 at 11:02 PM, <behrooz rock com> wrote:
> try "\u0633\u0644\u0627\u0645" instead of "سلام"
>
> On Thu, Dec 29, 2011 at 11:02 PM, <behrooz rock com> wrote:
> You can use gettext to translate the Label text.
>
> Some code example:
> http://blog.fpmurphy.com/2011/04/gnome-3-shell-extensions.html Example 2
> ----- Original Message -----
> From: bijan binaee
> To: gnome-shell-list gnome org
> Subject: Direct utf 8 Label
> Date: Thu, 29 Dec 2011 13:14:15 +0330
>
> Hi everybody in the mailing list
>
> I had defined St.Label and now i want to set the text of label to something
> like "سلام" but
> next the text show on the screen is not right
>
> i check the encoding the source code and it's utf8
>
> can any body know why this problem cause
>
> also i attach the result
>
> Regards Bijan Binaee
>
>
> [Attachment: Screenshot at 2011-12-29 13:12:26.png]
>
> You can use gettext to translate the Label text.
> >
> > Some code example:
> > http://blog.fpmurphy.com/2011/04/gnome-3-shell-extensions.html Example 2
>
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list
>
--
Regards,
Behrooz
--
You Rock! Your E-Mail Should Too! Signup Now at Rock.com and get 2GB of Storage!
http://connections.rock.com/user/displayUserRegisterPage.kickAction?as=116748&STATUS=MAIN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]