The princess , on this , told her entire history to the mermaid , who assured her how sorry she felt for her , but begged her not to lose courage ; adding , as she took her leave : ` Perhaps , some day , you may find a way out of your difficulties . '