Strange Text Symbols - Error, includes/functions.php

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Weered
Registered User
Posts: 24
Joined: Thu Feb 25, 2010 8:31 pm

Strange Text Symbols - Error, includes/functions.php

Postby Weered » Tue Jan 18, 2011 2:37 pm

Hi,

I have recently started doing an upgrade to my forum and to do so I am running a second copy of my PHPBB3 for editing. Now I haven't altered much at all but I am finding strange characters popping up.

For example in the search field it is suppose to display Search... but instead has Search….

Another example is is a quotation (Not quoting someone simply quoting the title of something). It should display as "Stand Against the Ban" but instead looks like “Stand Against the Ban”. I did receive an error making a new post and it directed me to includes/functions.php on line 35 which is something to do with special characters:

Code: Select all

   $result = trim(htmlspecialchars(str_replace(array("\r\n", "\r", "\0"), array("\n", "\n", ''), $result), ENT_COMPAT, 'UTF-8'));


Has this ever happened to anyone?
Last edited by Pit$Bull on Tue Jan 18, 2011 3:51 pm, edited 2 times in total.
Reason: Topic icon changed

Pit$Bull
Former Team Member
Posts: 23099
Joined: Sat Dec 02, 2006 4:08 pm
Name: Can't Remember

Re: Strange Text Symbols - Error, includes/functions.php

Postby Pit$Bull » Tue Jan 18, 2011 2:43 pm

What are you using to edit files?

Please fill out the Support Request Template Generator and post it back here to enable us to assist you better.

Weered
Registered User
Posts: 24
Joined: Thu Feb 25, 2010 8:31 pm

Re: Strange Text Symbols - Error, includes/functions.php

Postby Weered » Tue Jan 18, 2011 3:09 pm

As requested: *EDIT* I am using Dreamweaver to edit.

Support Request Template
What version of phpBB are you using? phpBB 3.0.5
What is your board's URL? dublove.ca/version2/PHP/html/modules.php?name=Forums&sid=c68e2404f86aa624e75303d0e23d9643
Who do you host your board with? Register.com
How did you install your board? I used a download package provided by another website
Is your board a fresh install or a conversion? Fresh Install
Do you have any MODs installed? No
Is registration required to reproduce this issue? No
What styles do you currently have installed? ProBlack
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? Experienced with PHP and phpBB
When did your problem begin? My problem only exists in a secondary installation being used to test updates. It ONLY occurs in the second instance of the forum and the original remains operating normally.
Please describe your problem. The forum is displaying odd text characters in the place of quotes and other regular symbols. Examples:
- In the search field it is suppose to display Search... but instead has Search….
- A quotation (Not quoting someone simply quoting the title of something). It should display as "Stand Against the Ban" but instead looks like “Stand Against the Ban”.
Generated by SRT Generator ($Rev: 4502 $)

blakebowling
Registered User
Posts: 775
Joined: Sun Apr 27, 2008 4:49 am
Location: 127.0.0.1

Re: Strange Text Symbols - Error, includes/functions.php

Postby blakebowling » Tue Jan 18, 2011 3:15 pm

Dreamweaver is your problem, use a REAL text editor like Notepad++ (There are more listed in the KB).

Weered
Registered User
Posts: 24
Joined: Thu Feb 25, 2010 8:31 pm

Re: Strange Text Symbols - Error, includes/functions.php

Postby Weered » Tue Jan 18, 2011 3:18 pm

In my years of working in PHP Dreamweaver has never caused a problem despite common opinion.

Pit$Bull
Former Team Member
Posts: 23099
Joined: Sat Dec 02, 2006 4:08 pm
Name: Can't Remember

Re: Strange Text Symbols - Error, includes/functions.php

Postby Pit$Bull » Tue Jan 18, 2011 3:18 pm

Pit$Bull wrote:What are you using to edit files?


Weered
Registered User
Posts: 24
Joined: Thu Feb 25, 2010 8:31 pm

Re: Strange Text Symbols - Error, includes/functions.php

Postby Weered » Tue Jan 18, 2011 3:20 pm

Weered wrote:As requested: *EDIT* I am using Dreamweaver to edit.

User avatar
RMcGirr83
Former Team Member
Posts: 17322
Joined: Wed Jun 22, 2005 4:33 pm
Location: Connecticut USA
Name: Rich McGirr
Contact:

Re: Strange Text Symbols - Error, includes/functions.php

Postby RMcGirr83 » Tue Jan 18, 2011 3:25 pm

You must have the settings set very specifically within Dreamweaver to edit the PHP and HTML files of phpBB.
Do not hire Christian Bullock | Appreciate the extensions/mods/support then feel free to buy me a beer

Pit$Bull
Former Team Member
Posts: 23099
Joined: Sat Dec 02, 2006 4:08 pm
Name: Can't Remember

Re: Strange Text Symbols - Error, includes/functions.php

Postby Pit$Bull » Tue Jan 18, 2011 3:26 pm

Dreamweaver is causing the issues. Never use Dreamweaver with anything connected with phpBB.
Use a simple text editor such as Notepad++ with an FTP client such as FileZilla

Weered
Registered User
Posts: 24
Joined: Thu Feb 25, 2010 8:31 pm

Re: Strange Text Symbols - Error, includes/functions.php

Postby Weered » Tue Jan 18, 2011 3:47 pm

I fixed it guys. Thank you very much for the prompt support. I'm running PHPBB 3.0.5 as a module within PHPNuke 8.0 as opposed to the usual PHPBB2 so I often run into conflicting nonsense. The second test forum was built in a sub directory which did not agree with a few things.

Dreamweaver is fine for me as I no longer directly mod PHPBB aside from styles. PHPBB3 in itself is a mod for me.

It was an odd oversight on my behalf, sorry to involve you.

Paul Drabek
Registered User
Posts: 74
Joined: Thu Mar 30, 2006 2:59 am
Contact:

Re: Strange Text Symbols - Error, includes/functions.php

Postby Paul Drabek » Sat Feb 25, 2012 3:51 pm

Hi;

I have this same issue (I have used Expression Web to edit some files) and I was wondering how you fixed it?

Thanks

Paul

User avatar
Oyabun1
Support Team Member
Support Team Member
Posts: 22176
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Strange Text Symbols - Error, includes/functions.php

Postby Oyabun1 » Sat Feb 25, 2012 11:28 pm

Paul Drabek wrote:I have this same issue (I have used Expression Web to edit some files) and I was wondering how you fixed it?
Unless you are also running 3.0.5 as a module within PHPNuke 8.0 it not likely to be the same. Start your own topic and include the Support Request Template.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests


Return to “3.0.x Support Forum”

Who is online

Users browsing this forum: Anuj Dhawan, Google [Bot], kooljp and 82 guests