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 139479 - I18N - php file seeded with charset value of locale encoding, not project encoding
Summary: I18N - php file seeded with charset value of locale encoding, not project enc...
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-07-09 20:08 UTC by Ken Frank
Modified: 2008-07-29 20:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2008-07-09 20:08:07 UTC
create php project, and choose in wizard, an encoding different than what is
suggested, like utf-8 or some other one. (see 139478 about this)

but the encoding value of the index.php is still the encoding of the locale user
is running php in, and not that of the project, which I think is requirement
related to feq.

new php web page is created with the encoding value of the project encoding.

new php file itself does not have charset tag, since I think that its code
will always be embedded in html page which itself would have encoding value ?
yet there is choice to run this file alone, thus shouldn't there be some
encoding tag apppropriate for php in it ?
I'll file something separate about this.

(and how can such a file be run to just output some string since output
seems tied to html file with php embedded, not php file ?)
Comment 1 Ken Frank 2008-07-09 20:17:59 UTC
to clarify, I was running nb in solaris ja locale, not ja utf-8 locale,
which is a locale still used; also for windows, since there is no
utf-8 locales, this would always be the case on windows.

ken.frank@sun.com
Comment 2 Tomas Mysik 2008-07-25 10:48:44 UTC
I tried to create new PHP project with windows-1250 encoding (my default is UTF-8) - index file was created with 
correct meta tag. So probably fixed already (there were some changes recently in this area) - if the problem still 
exists, feel free to reopen this issue and provide _exact_ steps to reproduce. Thanks.
Comment 3 Ken Frank 2008-07-29 20:08:13 UTC
verified.