octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63139] About string support for Chinese, Japa


From: anonymous
Subject: [Octave-bug-tracker] [bug #63139] About string support for Chinese, Japanese and Korean characters
Date: Fri, 30 Sep 2022 08:28:09 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?63139>

                 Summary: About string support for Chinese, Japanese and
Korean characters
                 Project: GNU Octave
               Submitter: None
               Submitted: Fri 30 Sep 2022 12:28:08 PM UTC
                Category: Other
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Han
        Originator Email: eptansuo@163.com
             Open/Closed: Open
                 Release: 7.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 30 Sep 2022 12:28:08 PM UTC By: Anonymous
In Octave:
>> str = char("你好")
str = 你好
>> size(str)
ans = 
    1    6

We can see that the size of the string of two Chinese characters in Octave is
6.

However, in Matlab:

>> str = char("你好")
str =
    '你好'
>> size(str)
ans =
     1     2
We can see the string of contains two Chinese characters .







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63139>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]