A couple of features and bug fixes

Hello there,
I have been testing out Lychee fixing bugs and adding minor features in progress. Here is a list of  the changes I have introduced so far. 

* Faster photo browsing thanks to caching.
* Default sort order of albums is changed from new to old.
* Preserves scroll position when changing from albums to album and vice versa
* Better Unicode support for values read from the database

Hopefully these are of use to you. If you have any questions, do not hesitate to ask.

Cheers,
Roman
I have used lycheesyncer for uploading albums and it rendered unicode symbols as question marks. In the database itself it showed unicode characters just fine. On the other hand, Unicode characters input through the user interface were stored as \uxxx sequences and were displayed fine. All this took place with MySQL 5.1 on Dreamhost.



On 16 Sep 2014, at 21:44, Tobias Reich <notifications@github.com> wrote:

> In php/modules/Database.php:
> 
> > @@ -23,6 +23,9 @@ static function connect($host = 'localhost', $user, $password, $name = 'lychee')
> >  		# Avoid sql injection on older MySQL versions by using GBK
> >  		if ($database->server_version<50500) $database->set_charset('GBK');
> >  		else $database->set_charset("utf8");
> > +		
> > +		# Set unicode
> > +		$database->query('SET NAMES utf8;');
> Just be curious: Are there currently any problems with special chars?
> 
> —
> Reply to this email directly or view it on GitHub.
>