This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225943 - persian text direction in array with numeric index
Summary: persian text direction in array with numeric index
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Apache Config Files (show other bugs)
Version: 7.2.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-09 19:14 UTC by m-saleh
Modified: 2013-02-09 19:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (29.74 KB, text/plain)
2013-02-09 19:15 UTC, m-saleh
Details
Everything ok. (11.32 KB, image/png)
2013-02-09 19:20 UTC, Ondrej Brejla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m-saleh 2013-02-09 19:14:55 UTC
'options'=>array('1'=>'نو و عالی', '2'=>'نسبتا خوب', '3'=>'خوب نیست')

codes had bad display, when i use numeric  index in array with persian character value
Comment 1 m-saleh 2013-02-09 19:15:37 UTC
Created attachment 131196 [details]
IDE log
Comment 2 Ondrej Brejla 2013-02-09 19:20:26 UTC
That example is wrong, but it works for me properly in the dev build (see screenshot).
Comment 3 Ondrej Brejla 2013-02-09 19:20:41 UTC
Created attachment 131197 [details]
Everything ok.
Comment 4 m-saleh 2013-02-09 19:27:01 UTC
this is another example, display bad code

below code (correct)
<a href="" class="botton">انصراف</a>

display bad (wrong)
<a href="" class="botton</a>انصراف<"
Comment 5 Ondrej Brejla 2013-02-09 19:31:13 UTC
That code example (the second one) is wrong itself, so I really don't know why you complain about it. If it's wrong, then parser screams. But it has to, it's its work...to check if the code is parsable. It doesn't matter whether the content of the tag is persian or latin. This is underlined too:

<a href="" class="botton</a>aksjdh<"

It's broken code.
Comment 6 Ondrej Brejla 2013-02-09 19:33:00 UTC
I see some issues in 7.2.1 (that part of the code is hidden), but it really works properly in dev. Test it there [1]

[1] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 7 Ondrej Brejla 2013-02-09 19:34:24 UTC
Few days ago guys from Editor infrastructure fixed some issues caused by arabic text in editor, so I think that they really fixed that.
Comment 8 m-saleh 2013-02-09 19:42:47 UTC
one example is in correct php syntax but netbeans 7.2.1 show it in example two.

it is ok in phpdesigner. i wish to use netbeans :(( but....

(excuseme if my english syntax is wrong, i can't speak english well, thanks for your help)
Comment 9 Ondrej Brejla 2013-02-09 19:44:14 UTC
No problem :) But as I wrote, try dev build. It seems to be fixed there (use the download link). Not sure if it's fixed in 7.3 RC2 too, but you can test it as well. Thanks!
Comment 10 m-saleh 2013-02-09 19:46:47 UTC
Thank you very much :)