Content Assist and UTF8

Bug Reports and Fixes

Content Assist and UTF8

Postby ter » Mon Apr 07, 2008 12:01 pm

If I link JS library in file with UTF-8 codepage content assist will show not correct symbols.

Screenshots:
ter,cruiser,com,ua/other/spket_info_utf8,gif

ter,cruiser,com,ua/other/spket_info_utf8_2,gif

change , -> . :)
ter
 
Posts: 10
Joined: Fri Apr 04, 2008 9:11 am

Postby eric_suen » Tue Apr 08, 2008 8:08 am

Hi, I just upload a quick fix, you can download http://www.agpad.com/downloads/com.spket.ui_1.6.11.jar and replace the old one
eric_suen
Site Admin
 
Posts: 487
Joined: Wed Sep 28, 2005 7:00 am

Postby ter » Tue Apr 08, 2008 8:40 am

eric_suen wrote:you can download and replace the old one


I replace this file, reload Eclipse, but nothing changed :( UTF8 text the same in incorrect symbols.
I try reload JS library (in javascript profiles) but that didn't help the situation.

If it's help I shared two files (jsb and js) which I loaded to JavaScript Profiles.

ter,cruiser,com,ua/other/sample,zip

change , -> .
ter
 
Posts: 10
Joined: Fri Apr 04, 2008 9:11 am

Postby eric_suen » Tue Apr 08, 2008 9:22 am

I see, it only fix the file in workspace, for external file, currently the solution is add UTF-8 BOM header to your JavaScript file. for file in workspace, you can choose file/folder, using context menu, select Properties, then choose Resource item and set the default encoding...
eric_suen
Site Admin
 
Posts: 487
Joined: Wed Sep 28, 2005 7:00 am

Postby ter » Tue Apr 08, 2008 9:47 am

eric_suen wrote:for file in workspace, you can choose file/folder, using context menu, select Properties, then choose Resource item and set the default encoding...


This files placed in workspace and all of them have default encoding («inherited from container: UTF-8»). It does not work.
I try to change default to manual set UTF-8, but it does not help the same.

By the way... dialog Preferences->Spket->Javascript Profiles hasn't button «Force reload» (like in video from spket,com) and I must reload Eclipse for reloading library. It's correct? My Eclipse Version: 3.3.1.1, Build id: M20071023-1652
ter
 
Posts: 10
Joined: Fri Apr 04, 2008 9:11 am

Postby eric_suen » Tue Apr 08, 2008 2:41 pm

If you using JavaScript Profile, all files will treat as external file, no matter where the file is, otherwise, you have to using @include tag in comment, like this viewtopic.php?t=365

Basically, for library, you should using profile, for other file you will edit frequently, using @include is a better choice

For reload profile, choose the project, via command Ctrl+Shift+F5 or using context menu, select Reload JavaScript Profile item...
eric_suen
Site Admin
 
Posts: 487
Joined: Wed Sep 28, 2005 7:00 am

Postby ter » Tue Apr 08, 2008 3:12 pm

eric_suen wrote:For reload profile, choose the project, via command Ctrl+Shift+F5 or using context menu, select Reload JavaScript Profile item...


Big thanks! :)

Finally addition UTF-8 BOM header to JS file has helped.

But could you add analysis of connected jsb file to find string
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
? And specified encoding set as encoding included files.
ter
 
Posts: 10
Joined: Fri Apr 04, 2008 9:11 am

Postby eric_suen » Tue Apr 08, 2008 3:21 pm

ter wrote:But could you add analysis of connected jsb file to find string ? And specified encoding set as encoding included files.
Hmm, that encoding should only for that XML file encoding, I will fix this problem in next version with detect UTF-8 encoding automatically
eric_suen
Site Admin
 
Posts: 487
Joined: Wed Sep 28, 2005 7:00 am

Postby ter » Tue Apr 08, 2008 3:26 pm

eric_suen wrote:Hmm, that encoding should only for that XML file encoding, I will fix this problem in next version with detect UTF-8 encoding automatically


Thank you!
ter
 
Posts: 10
Joined: Fri Apr 04, 2008 9:11 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron